Hi everyone,
I have tried to find a solution to this issue to no avail. Here are some details (Note-I have attached my data and code if it helps):
Analysis
I am trying to run a dynamic occupancy model for Pronghorns using data from wildlife cameras. I have 3 years and 12 occasions for each year (36 total). There were some occasions during which cameras did not run, and I have written "NA" in such instances. Thus, for my 'y' data frame I have "NA's" dispersed throughout. I am using camera model for my obsCovs data frame and vegetation height and year for my yearlySiteCovs data frame. For the SiteCovs data frame, I have Site, Treatment Type, and Grass Cover.
Issue
When I import all of the data, I get the following error message:"Error in unmarkedMultFrame(y = ProngoccuAll, siteCovs = SiteCovs, yearlySiteCovs = yearly.site.covs, :
At least one matrix in yearlySiteCovs has incorrect number of dimensions." However, when I look at the "Environment" window in R ALL of the data I have imported for yearlySiteCovs (Year and VegHt) has the same number of observations (39) and variables (36) as all the other data frames, except for the siteCovs frame with has 39 observations of 3 variables (as it should).
Question
For the yearlySiteCovs data frame, do I need to include NA's that match those in the y data frame?
Thanks in advance for any help with this!
Best,
Kate Wilkins