Model comparison
To be able to interpret the price.ratio
coefficient of the probit.model
you calculate its effect of an average unit change on the latent propensity by using the function margins()
. You check if the effect for the probit.model
might be different by calling the function margins()
again on the logistic.model
object.
This exercise is part of the course
Building Response Models in R
Exercise instructions
- Obtain the marginal effect for
price.ratio
of thelogistic.model
by using the functionmargins()
. - Obtain the marginal effect for
price.ratio
of theprobit.model
by using the functionmargins()
.
Hands-on interactive exercise
Have a go at this exercise by completing this sample code.
# Logistic model
# Probit model