Displaying 1 result from an estimated 1 matches for "classyear2".
Did you mean:
classyear1
2006 Feb 09
0
bootstrapping lambda values from projections matrices
...value of the matrix is the growth rate of the
population (lambda). I would like to estimate confidence intervals for the
lambda values with bootstrap.
The function for calculating the eigenvalue I wrote like this:
mat.fun <- function(d,i){
mat<-matrix(c(0,
sum(d$klyear1[i]==1&d$classyear2[i]==2)/sum(d$classyear1[i]==1),
sum(d$classyear1[i]==1&d$classyear2[i]==3)/sum(d$classyear1[i]==1), 0,
sum(d$classyear1[i]==2&d$classyear2[i]==2)/sum(d$classyear1[i]==2),
sum(d$classyear1[i]==2&d$classyear2[i]==3)/sum(d$classyear1[i]==2),
sum(d$classyear1[i]==0&d$cla...