Data simulated from from an ordered probit model with an interaction effect.

data(df5)

Format

A data frame with 2000 rows and 3 variables.

  • x1 A continuous predictor variable.

  • x2 A factor with two levels: "Control" and "Treatment".

  • y The response variable; an ordered factor.

References

Liu, Dungang and Zhang, Heping. Residuals and Diagnostics for Ordinal Regression Models: A Surrogate Approach. Journal of the American Statistical Association (accepted).

Examples

head(df5)
#> y x1 x2 #> 1 1 4.652192 Control #> 2 2 3.301152 Control #> 3 1 4.004635 Control #> 4 1 6.834316 Control #> 5 1 5.202728 Control #> 6 2 1.253446 Control