by Karin » Thu Apr 08, 2010 4:04 am
Dear Jeff,
Thanks for your reply! Unfortunately, I didn’t get any mails from the forum either, and I noticed your message not before today. (It seems that I’m not permitted to send you an e-mail.)
I tried to specify the entire mark command (although I’m not sure if I didn’t miss something important), but I only got more error messages.
myexample=mark(name, ddl = name.ddl, begin.time = 1, model.name = "Phi(~age * Sex + Year)p(~1)", model = "CJS", title = "", model.parameters = list(Phi=list(formula=~age * Sex + Year),p=list(formula=~1)), covariates = NULL, initial = NULL, design.parameters = list(), right=TRUE, groups = c("Age","Sex"), age.var = 1, initial.ages = c(0.6,1.2,2), age.unit = 1/12, time.intervals = c(1,1,1,1,1,7,1,1,1,1,1,7,1,1,1,1,1,7,1,1,1,1,1), nocc=NULL, output = TRUE, invisible = TRUE, adjust = TRUE, mixtures = 1, se=TRUE, simplify=TRUE, filename="mark029", default.fixed=TRUE, silent=FALSE, retry=0, options=NULL, brief=FALSE, realvcv=FALSE, delete=FALSE, external=FALSE, profile.int=FALSE, chat=NULL)
Warning: specification of ddl ignored, as data have not been processed
Error in make.mark.model(data.proc, title = title, covariates = covariates, :
Error: Variable Year used in formula is not defined in data
The Factor Year was specified via the merge.design.covariates function and for “age” I used age bins. I don’t know whether (and how) they should be specified within the mark function as design.parameters or covariates.
“external=TRUE” should be used when I’m creating the original model? (in mark.wrapper ?)
Anyway, I’m not sure if addressing all the models exactly would solve my problem. As I mentioned before, I have several hundred models (I know that some may disagree with this approach). Therefore, I would prefer a method (if possible) to restore all models at once.
Thank you very much for your time!
Best wishes,
Karin