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.
Questo esercizio fa parte del corso
Building Response Models in R
Istruzioni dell'esercizio
- Obtain the marginal effect for
price.ratioof thelogistic.modelby using the functionmargins(). - Obtain the marginal effect for
price.ratioof theprobit.modelby using the functionmargins().
Esercizio pratico interattivo
Prova a risolvere questo esercizio completando il codice di esempio.
# Logistic model
# Probit model