RcppArmadillo::armadillo_throttle_cores(1)
db = start_new_project(verbAggrRules, ":memory:",
person_properties=list(gender=""))
add_booklet(db, verbAggrData, "agg")
f = fit_enorm(db)
plot(f, item_id="S1DoShout")
# side by side for two different groups
# (it is also possible to show two lines in the same plot
# by specifying add=TRUE as an argument in the second plot)
par(mfrow=c(1,2))
plot(f,item_id="S1WantCurse",dataSrc=db, predicate = gender=='Male',
main='men - $item_id')
plot(f,items="S1WantCurse",dataSrc=db, predicate = gender=='Female',
main='women - $item_id')
close_project(db)
RcppArmadillo::armadillo_reset_cores()
Run the code above in your browser using DataLab