Answered step by step
Verified Expert Solution
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.
CRIMEcsv contains data on arrests during the year and other information on men born in either or in California. Each man in the sample was arrested at least once prior to The variable narr is the number of times the man was arrested during : it is zero
for most men in the sample, and it varies from to
The variable pcnv is the proportion not percentage of arrests prior to that led to conviction, avgsen is average sentence length served for prior convictions zero for most people ptime is months spent in prison in and qemp is the number of quarters during which the man was
employed in from zero to four
Define the variable y as when narr is not and otherwise.
A model explaining the probability to be arrested is avgsen ptime
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 ptime 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 qemp
Estimate this model using all observations and report input.
Using this estimated model, and given the features of the second sample observation
observation # what is the estimated probability that this individual is arrested in
Suppose you do not observe the value of y for observation # Based on your answer in
would you predict an arrest for this individual? Explain.
Now looking at the actual value y for observation # is your prediction from question correct?
Interpret the estimate associated with avgsen.
What is the estimated marginal effect of pcnv on the logoddsthe odds being ParrestPArrest
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started