Hello I am working on CMR model with robust design using your RMark pakage , on Rstudio to analyse photo ID data. One of my most important covariates, as I am working, with opportunistic data is the relative effort during my occasions.
I wasn't able to find any example on time covariate incorporation online, and I having some troubles trying to implement it in my probability of detection
I can formulate this effort in term of secondary occasions as well as primary occasions.
I'm wondering if you know any example using the effort this way, as a time covariates, and the way to edit in my code. Mk is my covariate in this case, and I want it to impact p estimation
Thank you very much for any help
time.intervals<-c(0,1,0,0,1,0,0,0,1,0,0,1,0,0,1,0,0,0,0,0,0,0,1,
0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,1,0,0,0,1,
0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,1,
0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,1,
0,0,0,0,0,0)
M.proc<-process.data(FD,model="Robust", time.intervals=time.intervals)
p.time.session=list(formula=~time*Mk,share=TRUE)
S.time=list(formula=~time)
GammaDoublePrime.random=list(formula=~time,share=TRUE)
design.parameters=list(S=S.time,
GammaDoublePrime=GammaDoublePrime.random,p=p.time.session)
M.ddl=make.design.data(M.proc,parameters=design.parameters)
model.2=mark(M.proc,M.ddl, model = "Robust",
time.intervals=time.intervals,
model.parameters=design.parameters,threads=2)