Jeff, I've emailed you the input file "monthly.txt".
I'm getting the messages "Note: only 3 parameters counted of 4 specified parameters" and "AICc and parameter count have been adjusted upward" in R and "Attempted ordering of parameters by estimatibility: 2 1 3 4" and "Beta number 4 is a singular value." in the output file when I run my below code:
- Code: Select all
library(RMark)
try2=import.chdata("monthly.txt",header=FALSE,
field.names=c("ch","freq","Sex","Species"),field.types=c("n","n","n"))
try2$Sex <- as.factor(try2$Sex)
try2$Species <- as.factor(try2$Species)
wall.processed=process.data(try2, model="MSLiveDead", groups = c("Sex","Species"),strata.labels=c("A","B","C","D"))
wall.ddl=make.design.data(wall.processed)
str(wall.ddl)
table(wall.ddl$Psi[,c("stratum","tostratum")])
r.dot=list(formula=~1)
p.dot=list(formula=~1)
S.dot=list(formula=~1)
Psi.dot=list(formula=~1)
r.stratum=list(formula=~1+stratum)
p.stratum=list(formula=~1+stratum)
S.stratum=list(formula=~1+stratum)
Psi.stratum=list(formula=~stratum)
model.list1=create.model.list("MSLiveDead")
mstrata.telem.resultsNEW=mark.wrapper(model.list1,data=wall.processed,ddl=wall.ddl)
return(mstrata.telem.resultsNEW)
mstrata.telem.resultsNEW
I've found similar posts on the forum but I don't understand why I'm hung up.