I'd like to do a projection matrix (projection.matrix with popbio package) and then a bootstrap with the function boot.transition (package popbio too) in order to calculate confidence intervals of lambda. I already calculated deterministic lambda thanks to estimated demographic parameters.
I have this table :
[I can put only one picture so I put it on the next comments as PICT1]
I take for example the year paired 2001-2002 and I transform the columns names into "stage" and "fate" that way :
data2=select(data, X2001, X2002)
data2 <- rename.variable(data2, "X2001", "stage")
data2 <- rename.variable(data2, "X2002", "fate")
I get this table :
Then, I try :
stages <- c("2", "3", "4", "5")
projection.matrix(data2, stage, fate, sort = stages)
But I have an error message : "Missing a fertility column with individual fertility rates"
Normally, I have a matrix construct like that (it is just to give you an idea) :
[I can put only one picture so I put it on the next comments as PICT2]
Can you help me please ?