resampRepli {fullfact} | R Documentation |
Bootstrap resample within replicates
Description
Bootstrap resample observations grouped by replicate identities within family identities for a specified number of iterations to create a resampled data set.
Usage
resampRepli(dat, copy, family, replicate, iter)
Arguments
dat |
Data frame observed data to resample. |
copy |
Column numbers to copy. |
family |
Column name containing family identity information. |
replicate |
Column name containing replicate identity information. |
iter |
Number of iterations for resampling. |
Details
The resampled data can be used for producing bootstrap confidence intervals.
Value
Because of the large file sizes that can be produced, the resampling of each replicate Y per family X is saved separately as a common separated (X_Y_resampR.csv) file in the working directory. These files are merged to create the final resampled data set (resamp_datR.csv).
See Also
Examples
data(chinook_length) #Chinook salmon offspring length
#resampRepli(dat=chinook_length,copy=c(3:8),family="family",replicate="repli",iter=1000)
#example with a couple iterations
#resampRepli(dat=chinook_length,copy=c(3:8),family="family",replicate="repli",iter=2)
[Package fullfact version 1.5.2 Index]