Aan de slagGa gratis aan de slag

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.

Deze oefening maakt deel uit van de cursus

Building Response Models in R

Cursus bekijken

Oefeninstructies

  • Obtain the marginal effect for price.ratio of the logistic.model by using the function margins().
  • Obtain the marginal effect for price.ratio of the probit.model by using the function margins().

Praktische interactieve oefening

Probeer deze oefening eens door deze voorbeeldcode in te vullen.

# Logistic model


# Probit model
Code bewerken en uitvoeren