Page 1 of 1

RMark and occasion-specific covariates

PostPosted: Thu Sep 27, 2007 12:39 pm
by howeer
I've been through Appendix C, but can't understand how to add temporal covariates to the design data. I need to add fields to the design data with unique values (weather data) for each group(distinct sampling grids at different locations) on each occasion. Typing the values in would be OK, though it would be nice if I could link to a file with columns for "time" and "wmu" (wildlife management unit) which is the grouping variable, and occasion and wmu-specific covariates. Any suggestions?

PostPosted: Thu Sep 27, 2007 1:11 pm
by howeer
It seems the function merge.occasion.data will allow this.

PostPosted: Fri Sep 28, 2007 12:04 pm
by howeer
The merge.occasion.data function in the current version of RMark will not assign unique occasion- and group-specific covariate values - only values unique to each occasion (time). In the next version of RMark, the merge.occasion.data function will include the argument "bygroup" (T or F, default = F). By setting "bygroup" to TRUE, the function will assign occasion- and group-specific values from the data frame "df" to the design data. Thanks JL!