help in mutistates model with covariate

Dear RMark User,
I am wondering whether you could give me some suggestion on my models.
For example, I want to build two models using a co-variate ("+Area")
1. Mod1: Movement is differed by starta and time and a function of Area, where survival and p are constant
2. Mod2: movement is differed by starta and function of Area, Survival is also differed by starta and time and
I used following code, I am wondering whether I have been doing Ok or not in terms of building model.
####
ms.pr=process.data(ms, model = "Multistrata")
summary(ms.pr)
ms.ddl=make.design.data(ms.pr)
head(ms.ddl$S)
head(ms.ddl$p)
head(ms.ddl$Psi)
#
ms.ddl$p$Area=NA
#ms.ddl$p$temperature=NA
#ms.ddl$p$flow=NA
ms.ddl$p$Area[ms.ddl$p$stratum=="A"]=467829
ms.ddl$p$Area[ms.ddl$p$stratum=="B"]=299104
ms.ddl$p$Area[ms.ddl$p$stratum=="C"]=236567
ms.ddl$p$Area[ms.ddl$p$stratum=="D"]=450147
ms.ddl$p$Area[ms.ddl$p$stratum=="E"]=104052
ms.ddl$p$Area[ms.ddl$p$stratum=="F"]=10405200
#
ms.ddl$S$Area[ms.ddl$S$stratum=="A"]=467829
ms.ddl$S$Area[ms.ddl$S$stratum=="B"]=299104
ms.ddl$S$Area[ms.ddl$S$stratum=="C"]=236567
ms.ddl$S$Area[ms.ddl$S$stratum=="D"]=450147
ms.ddl$S$Area[ms.ddl$S$stratum=="E"]=104052
ms.ddl$S$Area[ms.ddl$S$stratum=="F"]=10405200
#
ms.ddl$Psi$Area[ms.ddl$Psi$stratum=="A"]=467829
ms.ddl$Psi$Area[ms.ddl$Psi$stratum=="B"]=299104
ms.ddl$Psi$Area[ms.ddl$Psi$stratum=="C"]=236567
ms.ddl$Psi$Area[ms.ddl$Psi$stratum=="D"]=450147
ms.ddl$Psi$Area[ms.ddl$Psi$stratum=="E"]=104052
ms.ddl$Psi$Area[ms.ddl$Psi$stratum=="F"]=10405200
#
Sdot=list(formula=~1)
S.stratum=list(formula=~stratum)
S.stratumxtime.Area=list(formula=~stratum*time+Area)
pdot=list(formula=~1)
p.stratumxtime=list(formula=~stratum*time)
p.stratumxtime.Area=list(formula=~stratum*time+Area)
Psi.s.dot=list(formula=~1)
Psi.s.time.area=list(formula=~-1+stratum:tostratum*time+Area)
Psi.s.area=list(formula=~-1+stratum:tostratum+Area)
# I want to build two models,
#Mod1 is: movement is differed by starta and time and a function of Area, where survival and p are consatnt
#Mod2: movement is differed by starta and function of Area, Survival is also differed by starta and time and function of Area
Mod1<-mark(ms.pr,ms.ddl,model.parameters=list(Psi=Psi.s.time.area,S=Sdot,p=pdot))
Mod2<-mark(ms.pr,ms.ddl,model.parameters=list(Psi=Psi.s.area,S=S.stratumxtime.Area,p=pdot))
Are these procedures correct?
Thanks for your help.
I am wondering whether you could give me some suggestion on my models.
For example, I want to build two models using a co-variate ("+Area")
1. Mod1: Movement is differed by starta and time and a function of Area, where survival and p are constant
2. Mod2: movement is differed by starta and function of Area, Survival is also differed by starta and time and
I used following code, I am wondering whether I have been doing Ok or not in terms of building model.
####
ms.pr=process.data(ms, model = "Multistrata")
summary(ms.pr)
ms.ddl=make.design.data(ms.pr)
head(ms.ddl$S)
head(ms.ddl$p)
head(ms.ddl$Psi)
#
ms.ddl$p$Area=NA
#ms.ddl$p$temperature=NA
#ms.ddl$p$flow=NA
ms.ddl$p$Area[ms.ddl$p$stratum=="A"]=467829
ms.ddl$p$Area[ms.ddl$p$stratum=="B"]=299104
ms.ddl$p$Area[ms.ddl$p$stratum=="C"]=236567
ms.ddl$p$Area[ms.ddl$p$stratum=="D"]=450147
ms.ddl$p$Area[ms.ddl$p$stratum=="E"]=104052
ms.ddl$p$Area[ms.ddl$p$stratum=="F"]=10405200
#
ms.ddl$S$Area[ms.ddl$S$stratum=="A"]=467829
ms.ddl$S$Area[ms.ddl$S$stratum=="B"]=299104
ms.ddl$S$Area[ms.ddl$S$stratum=="C"]=236567
ms.ddl$S$Area[ms.ddl$S$stratum=="D"]=450147
ms.ddl$S$Area[ms.ddl$S$stratum=="E"]=104052
ms.ddl$S$Area[ms.ddl$S$stratum=="F"]=10405200
#
ms.ddl$Psi$Area[ms.ddl$Psi$stratum=="A"]=467829
ms.ddl$Psi$Area[ms.ddl$Psi$stratum=="B"]=299104
ms.ddl$Psi$Area[ms.ddl$Psi$stratum=="C"]=236567
ms.ddl$Psi$Area[ms.ddl$Psi$stratum=="D"]=450147
ms.ddl$Psi$Area[ms.ddl$Psi$stratum=="E"]=104052
ms.ddl$Psi$Area[ms.ddl$Psi$stratum=="F"]=10405200
#
Sdot=list(formula=~1)
S.stratum=list(formula=~stratum)
S.stratumxtime.Area=list(formula=~stratum*time+Area)
pdot=list(formula=~1)
p.stratumxtime=list(formula=~stratum*time)
p.stratumxtime.Area=list(formula=~stratum*time+Area)
Psi.s.dot=list(formula=~1)
Psi.s.time.area=list(formula=~-1+stratum:tostratum*time+Area)
Psi.s.area=list(formula=~-1+stratum:tostratum+Area)
# I want to build two models,
#Mod1 is: movement is differed by starta and time and a function of Area, where survival and p are consatnt
#Mod2: movement is differed by starta and function of Area, Survival is also differed by starta and time and function of Area
Mod1<-mark(ms.pr,ms.ddl,model.parameters=list(Psi=Psi.s.time.area,S=Sdot,p=pdot))
Mod2<-mark(ms.pr,ms.ddl,model.parameters=list(Psi=Psi.s.area,S=S.stratumxtime.Area,p=pdot))
Are these procedures correct?
Thanks for your help.