Hi there,
I've been trying to replicate my results from PRESENCE into RPresence, however I can't quite work out how to incorporate a linear trend via the design matrix for detection. When I look at the matrix from my model in which method.linear.trend is a design matrix incorporating a linear trend (in which the detection rate changes consistently with time):
meth.linear.trend <-occMod(model = list(psi~ 1, gamma ~ 1, epsilon ~ 1, p ~ -1 + method.linear.trend),
data = mydata, type = "do.1")
The tail of the model matrix shows an issue (simplified here as a dummy example):
P(1-1) "1" "0"
P(1-2) "1" "1"
P(1-3) "1" "p.method.linear.trendd3"
P(1-4) "1" "p.method.linear.trendd3"
I'm guessing the design matrix is now being handled as factors rather than as continuous variables (where the numbers 2 and 3 understandably become problematic). In such a case what is the correct way to handle the coding for the linear trend?