// import the data into a dataset called Data and generate a constant term
Data = webimport("www.bayeconsoft.com/datasets/CCES2017.csv");
Data.constant = 1;
// run the ordinal-Logit and Probit models
myOLogit = ologit( ideology ~ constant age educ male homeowner faminc,
"thin"=5, "chains"=2 );
myOProbit = oprobit( ideology ~ constant age educ male homeowner faminc,
"thin"=5, "chains"=2 );
// calculate marginal effects for the two models
mfx( "model"=myOLogit );
mfx( "model"=myOProbit );