Question: 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)]?
 need help with code using R and for the final answers

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!