Hello,
I am running single-specie single-season false-positive models with the interview data in PRESENCE. I have three covariates for modeling the detection probability, in which gender is categorical, age is continuous and time spend is also categorical.
I want to know how to enter the categorical variable in the design matrix of detection probability. I have two categories male and female which I have entered in the detection covariates file as follows:
1 2 3
A4 M M M
A5 M F M
A6 F M M
I have converted them into two indicator variables where Male is represented by 1 and female is represented by 0. The detection probability design matrix is as follows:
b1 b2 b3 b4
p1(1) 1 0 0 0
p1(2) 1 0 0 0
p1(3) 1 0 0 0
p10(1) 0 1 0 Gender
p10(2) 0 1 0 Gender
p10(3) 0 1 0 Gender
b1(1) 0 0 1 0
b1(2) 0 0 1 0
b1(3) 0 0 1 0
I have kept p1 and b1 constant but the p10 is varied with the gender covariate. I just wish to know if it is the right way to enter the categorical covariates in the detection probability design matrix or if there is some other way. I was not able to find how to enter categorical covariates for detection probability but for occupancy probability, it is given in manuals.
Thank You