nwos_make_replicates: NWOS Make Replicates

View source: R/nwos_make_replicates.R

nwos_make_replicatesR Documentation

NWOS Make Replicates

Description

Generate replicates that can be used for NWOS bootstrapping variance estimation.

Usage

nwos_make_replicates(index, point.count, R = 2500)

Arguments

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.

Value

List containing indices for the observations that make up each of the replicates.

References

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.

Examples

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)

familyforestresearchcenter/nwos documentation built on April 12, 2025, 11:54 a.m.