nwos_replicates: NWOS Replicates

Description Usage Arguments Value References Examples

View source: R/nwos_replicates.R View source: R/_ARCHIVE/CopyOfnwos_replicates.R

Description

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

Usage

1
nwos_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

1
2
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)

bbutler01/nwos documentation built on Aug. 30, 2019, 12:57 p.m.