Hi all,
 
I am working with a capture-recapture analyses and my data set consists of a
typical set of encounter histories.
Thus, for each individual I have a string (same length for all the
individuals) consisting of 0 (not seen) and other numbers (seen in state
"1", seen in state "2", etc. where state may refer to breeding, nesting,
feeding, etc.).
At the end of each string I have a last value that refers to the group
(according to sex, age, sex*age, whatever). State and group refer to
different classifications. 
Hence my original data set would be (by the way I can modify it to make
things easier):
0001002002 1; (individual of group 1, first captured in state "1! at
occasion 4th, not captured at occasion 5th and 6th, captured at 7th in state
2...etc.)
1100222101 1;
0000020010 3;
0010101022 2;
...
 
Suppose I have 5000 strings divided in x individuals of group 1, y
individuals of group 2, ... z individuals of group "n".
I need to bootstrap this data set to get a new data set of the same length
(resampling with replacement) and where the number of individuals of each
group is maintained the same.
 
Does anyone have an idea on how to do it?
Thanks in advance for any help
 
Simone 
 
 
 
 
 
 
--
View this message in context: 
http://r.789695.n4.nabble.com/Bootstrap-encounter-histories-data-tp4661300.html
Sent from the R help mailing list archive at Nabble.com.
 
                                          
        [[alternative HTML version deleted]]

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to