estimate_indicators: A wrapper function for 'bootBW' in 'bbw' package that applies...

Description Usage Arguments Value Examples

View source: R/estimate.R

Description

A wrapper function for bootBW in bbw package that applies the blocked weighted bootstrap to an indicators data frame with multiple stratifications.

Usage

1
estimate_indicators(steer, indicators, pop, statistic, replicates = 399)

Arguments

steer

A data frame containing information on the various indicators to be analysed

indicators

A data frame containing indicators data

pop

A data frame containing population data for each primary sampling unit (PSU)

statistic

A character value specifying the name of the statistic to apply on the data on bootstrap. Two statistics are available for use via bbw package: bootClassic and bootProbit.

replicates

A numeric value of the number of replicates in performing blocked weighted bootstrap. Default is 399. Accepted values greater than or equal to 399

Value

A data frame of boostrapped results

Examples

1
2
3
4
5
6
  #
  estimate_indicators(steer = steerIndicators[steerIndicators$varList == "jmpWater4", ], 
                      indicators = washdata::indicatorsDataBGD, 
                      pop = washdata::popBGD, 
                      statistic = "bootClassic", 
                      replicates = 9)

validmeasures/wsup documentation built on Dec. 16, 2019, 4:50 a.m.