I'm trying to run p.session=list(formula=~session) and I have had no problems with this before using a crdms.
When I try and run this using a popan model I get the following error;
- Code: Select all
Error in make.mark.model(data.proc, title = title, parameters = model.parameters, :
Error: Variable session used in formula is not defined in data
Error in mark(capt.pr, ddl = capt.ddl, time.intervals = x, model.parameters = list(pent = pent.dot, :
Misspecification of model or internal error in code
I have also tried this with p.session, and get the same error. Why did I not get this error when using session and cohort with crdms?
Do I need to predefine cohorts in the .ddl somehow, rather than mark automatically knowing?
Also am I right in thinking session and cohorts can be used interchangeably?
Cheers for helping