Hi,
I've gotten stuck with Rmark and cannot seem to figure out what I have done incorrectly, I will try to explain as clearly as possible.
I am using Rmark to run a MSLiveDead analysis and have done so successfully with no covariates included... continuous or binary. However I now want to re-run the analysis with covariates including sex (M,F) and a continuous condition (K) covariate. Here is a sample of my encounter histories format
/*Wall001*/ A000A0A000000 1 M 1.031319061 ;
/*Wall002*/ A000A000A0A0B 1 F 1.128465629 ;
/*Wall003*/ A00000A0A0A0A 1 F 0.871836095 ;
/*Wall004*/ A0A000A000A0A 1 F 1.009652684 ;
/*Wall005*/ A0A00000A000A 1 F 1.073007164 ;
Here is a sample of the code I have been trying to use to bring in the encounter history .INP file to Rmark.
>setwd('C:/Users/etc..')
> wall = convert.inp(".2states_1week_sexMF_condition", group.df=data.frame(sex=c("M","F")),
covariates="condition", use.comments = TRUE)
And here is my R error output
Error in convert.inp("2states_1week_sexMF_condition", group.df = data.frame(sex = c("M", :
Row names not unique. Set use.comments to default value FALSE
In addition: Warning messages:
1: In readLines(inp.filename) :
incomplete final line found on '2states_1week_sexMF_condition.inp'
2: In data.frame(ch = ch, as.numeric(unlist(zz[, 2:(2 + number.of.groups - :
NAs introduced by coercion
If anyone could point me in the right direction I would very much appreciate it as i am not quite sure if my encounter histories file is not set up correctly or my code needs to be altered, or both...
Thanks in advance I do appreciate it.