I am rerunning some analysis with added years, with the model RDMSOpenMCSeas. I have not changed anything compared to last time (probably back in 2021?), but I do get a new error which one of my colleagues also gets (and she ran the same models last year). A bit of background and the error below, any help would be appreciated:
Data are 6 years of reproductive histories of seals, GOF test on CJS model all looking good. The model is open RD multi state with state uncertainty and seasonal effects. Under this model the following parameters are estimated: S, Psi, pim, Omega, p, Delta, pent, d, alpha and c.
- Code: Select all
time.interval.w=c(rep(0,5),1,rep(0,5),1,rep(0,5),1,rep(0,5),2,rep(0,5),1,rep(0,5))
#process data (N = non-breeder to be estimated; B = breeder)
fec.proc<-process.data(markdata_week,model="RDMSOpenMCSeas",begin.time = 2016,time.intervals = time.interval.w,strata.labels = c("B","N"))
#create design data
fec.ddl=make.design.data(fec.proc)
#fix deltaN; i.e. cannot estimate delta for N as not visible
fec.ddl$Delta$fix=NA
fec.ddl$Delta$fix[fec.ddl$Delta$N=="1"]=0
#define parameters
S.dot=list(formula=~1) #constant over time and state
Psi.stratum=list(formula=~stratum:tostratum) # constant over time, stratum dependant.
pi.dot=list(formula=~1) #constant
Omega.dot=list(formula=~1) # constant
...
d.state.time=list(formula=~stratum + secondary.time)
#model
pv01=make.mark.model(fec.proc, fec.ddl, parameters=list(S=S.dot, Psi=Psi.stratum, pi=pi.dot, Omega=Omega.dot, p=p.dot, Delta=Delta.dot, pent=pent.state.time, d=d.state.time, alpha=alpha.time, c=c.time), mlogit0=TRUE)
pv01=run.mark.model(pv01)
When I run the model I get the following error:
ERROR – The parameter name ‘d’ is not correct and thus known.
Any thoughts?
Many thanks!
Monica