Multiscale occ: categorical variables for theta

posts related to the RMark library, which may not be of general interest to users of 'classic' MARK

Multiscale occ: categorical variables for theta

Postby jCeradini » Thu Jan 05, 2017 1:46 pm

Hi folks,

I'm using the multiscale occupancy model in RMark: MultScalOcc. I have a bunch of sites and each site contains many plots, so I'm estimating psi for sites and theta for plots.

I'm coding theta (plot) level variables as time-varying covariates, like cover1, cover2, cover3...where the number corresponds to the plot. This works well for continuous variables but I also have categorical plot variables.

Is it possible to use categorical variables to model theta?
Is it possible to format a categorical variable as a time-varying covariate?

My attempts so far have failed. I've got the column names for the categorical variable setup to be time-varying but the columns are factors, so that causes multiple problems, of course. I could setup the 1/0 dummy coding for the variable but then there would be multiple columns for each plot and I don't understand how that would work. The variable has 5 levels.

Thanks!
Joe
jCeradini
 
Posts: 74
Joined: Mon Oct 13, 2014 3:53 pm

Re: Multiscale occ: categorical variables for theta

Postby jlaake » Fri Jan 06, 2017 11:05 am

see ?make.time.factor
jlaake
 
Posts: 1480
Joined: Fri May 12, 2006 12:50 pm
Location: Escondido, CA

Re: Multiscale occ: categorical variables for theta

Postby jCeradini » Fri Jan 06, 2017 4:19 pm

That function's incredible. Sorry I missed it.
Thanks Jeff.
jCeradini
 
Posts: 74
Joined: Mon Oct 13, 2014 3:53 pm


Return to RMark

Who is online

Users browsing this forum: No registered users and 1 guest