Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

need help with code using R and for the final answers ( attached questions and note pack ) step by step process of how to

need help with code using R and for the final answers (attached questions and note pack) step by step process of how to code and final answers please.
CRIME1.csv contains data on arrests during the year 1986 and other information on 2,725 men born in either 1960 or 1961 in California. Each man in the sample was arrested at least once prior to 1986. The variable narr86 is the number of times the man was arrested during 1986: it is zero
for most men in the sample, and it varies from 0 to 12.
The variable pcnv is the proportion (not percentage) of arrests prior to 1986 that led to conviction, avgsen is average sentence length served for prior convictions (zero for most people), ptime86 is months spent in prison in 1986, and qemp86 is the number of quarters during which the man was
employed in 1986(from zero to four).
Define the variable y as 1 when narr86 is not 0, and 0 otherwise.
A model explaining the probability to be arrested is y=0+1pcnv+2avgsen +3ptime86+
where pcnv is a proxy for the likelihood for being convicted of a crime and avgsen is a measure of
expected severity of punishment, if convicted. The variable ptime86 captures the incarcerative
effects of crime: if an individual is in prison, he cannot be arrested for a crime outside of prison.
Labor market opportunities are crudely captured by qemp86.
Estimate this logit model using all observations and report input.
1. Using this estimated model, and given the features of the second sample observation
(observation #2), what is the estimated probability that this individual is arrested in 1986?
2. Suppose you do not observe the value of y for observation #2. Based on your answer in 1,
would you predict an arrest for this individual? Explain.
3. Now looking at the actual value y for observation #2, is your prediction from question 2 correct?
4. Interpret the estimate associated with avgsen.
5. What is the estimated marginal effect of pcnv on the log(odds)(the odds being [(P(arrest)/1-P(Arrest)]?
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Beginning VB.NET Databases

Authors: Thearon Willis

1st Edition

1594864217, 978-1594864216

More Books

Students also viewed these Databases questions

Question

=+j Identify the challenges of training an international workforce.

Answered: 1 week ago