I'm trying to calculate quadratic time for my nest survival analysis in rMark and I'm running into an issue. I am a self-learner, and am trying my best to read through all forums/workshops/resources, so please be patient with me.
I have run several models already with linear time, nest age, DSR, etc. and am trying to add in quadratic time. I followed one line of code from another paper, and tried this:
- Code: Select all
nestdata$S$TT <- as.numeric (nest.ddl$Time)^2
Though it was successful, it added a column of code to my dataframe that looks like this:
- c(0, 1, 4, 9, 16, 25 ....)
For every row (i.e. individual nest) in my dataset. I know this is incorrect, but ran the model anyway to see what the output would be, and the error says "error in dataframe, arguments imply differing number of rows: 58, 62).... misspecification of model or internal error in code."
I know I'm likely missing some step that includes time in my dataframe, but I just can't make sense of how to add it in without needed some kind of time-related covariate. I'm happy to include an example of what y dataframe looks like if that seems helpful, but I didn't want to clog up this post any more. Any help/advice would be great, and again, I apologize if this information seems obvious--I'm learning as I go!
Thanks so much!