View source: R/nwos_make_replicates.R
nwos_make_replicates | R Documentation |
Generate replicates that can be used for NWOS bootstrapping variance estimation.
nwos_make_replicates(index, point.count, R = 2500)
index |
vector of names (e.g., row names) used to identify observations. |
point.count |
the number of sample points associated with each observation. Default is 1. |
R |
number of replicates or bootstraps. Default is 2500. |
List containing indices for the observations that make up each of the replicates.
Butler, B.J. In review. Weighting for the US Forest Service, National Woodland Owner Survey. U.S. Department of Agriculture, Forest Service, Northern Research Station. Newotwn Square, PA.
wi <- tbl_df(read.csv("data/wi.csv")) %>% mutate(ROW_NAME = row.names(wi), AC_WOOD = ACRES_FOREST, FFO = if_else(LAND_USE == 1 & OWN_CD == 45 & AC_WOOD >= 1, 1, 0))
WI_REPLICATES <- nwos_replicates(index = row.names(wi), point.count = wi$POINT_COUNT, R = 100)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.