Hello,
I've been unsuccessful in adding my covariates through the trapfile.
I've followed the instructions as per page 3 of the 'secr data input' manual, using '/' to delineate covariates.
The covariates do not appear (I've tried as many different ways as I could think of: importing with excel, as a csv comma delimited, with no effort data, with effort data displayed in a string, etc).
However, when I import it using the shiny secrdesignapp it works perfectly, and the covariates appear...
Any help would be most appreciated! :)
Kind regards,
Ana
Details:
#Create capture history file
A1_sug_caphistory<-read.capthist(captfile = "A1_SUG_captfile.txt",
trapfile = "A1_SUG_trapfile.txt",
covnames = c('EU'),
detector = "count")
... later when I run a model:
#Run secr model
fitted <- secr.fit(A1_sug_caphistory, mask = A1_mask, detectfn = 'HN',
model = list(D~EU, g0~1, sigma~1), trace = FALSE, ncores = 4)
I get the error: "EU" variable not found. Neither is "v1" found if I run it with the automatic name for the covariates.