Hello, I am trying to run an HCRDMS model and when I run the script for my first dataset, it runs fine, but when I run it for my second data set I get the following message:
Using default formula for c
S Psi p
1 S.aPt Psi.dot p.dot
2 S.aXt Psi.dot p.dot
3 S.season Psi.dot p.dot
4 S.t Psi.dot p.dot
S.aPt.Psi.dot.p.dot
Error in names(design.matrix[[i]]) = paste(names(parameters)[i], names(design.matrix[[i]]), :
'names' attribute [1] must be the same length as the vector [0]
Error in mark(model.parameters = model.parameters, initial = initial, :
Misspecification of model or internal error in code
As I have not been able to pick up on any discrepancies in the structure of the two datasets simply by eye, and I don't fully understand what the error message is telling me, I was wondering if anyone could suggest any diagnostic script I could run to help figure out what the problem may be with the second dataset.
Thank you!