read_inp | R Documentation |
This function reads in capture-recapture dataset with the Input format. It is a wrapper for the function convert.inp from package RMark. It drops continuous covariates because no goodness-of-fit test exists for such models
read_inp(file, group.df = NULL)
file |
text file with Input format (extension .inp) |
group.df |
dataframe with grouping variables; contains a row for each group defined in the input file row1=group1, row2=group2 etc. Names and number of columns in the dataframe is set by user to define grouping variables in RMark dataframe |
list with first component the matrix of encounter histories, second components the vector of number of individuals with corresponding histories and, if relevant, third component vector/matrix with group(s)
Olivier Gimenez <olivier.gimenez@cefe.cnrs.fr>
# read in Dipper dataset dipper = system.file("extdata", "ed.inp", package = "R2ucare") read_inp(dipper,group.df=data.frame(sex=c('Male','Female'))) # read in Geese dataset geese = system.file("extdata", "geese.inp", package = "R2ucare") read_inp(geese)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.