powered by
This function splits encounter histories in as many individual histories as required.
ungroup_data(X, effX)
matrix with ungrouped capture-recapture histories and counts in the last column (should be 1s)
matrix of encounter capture-recapture histories
vector with numbers of individuals with that particular encounter history
Olivier Gimenez <olivier.gimenez@cefe.cnrs.fr>, Roger Pradel, Rémi Choquet
# Generate fake capture-recapture dataset X = matrix(round(runif(9)),nrow=3) freq=c(4,3,-8) cbind(X,freq) ungroup_data(X,freq)
Run the code above in your browser using DataLab