Estimate totals and means, and try to generate samples variances for all strata in an RDBESEstObject
Source:R/doEstimationForAllStrata.R
doEstimationForAllStrata.RdEstimate totals and means, and try to generate samples variances for all strata in an RDBESEstObject
Examples
if (FALSE) { # \dontrun{
myH1RawObject <-
importRDBESDataCSV(rdbesExtractPath = "tests\\testthat\\h1_v_1_19")
# Update our test data with some random sample measurements
myH1RawObject[["SA"]]$SAsampWtLive <-
round(runif(n = nrow(myH1RawObject[["SA"]]), min = 1, max = 100))
myH1EstObj <- createRDBESEstObject(myH1RawObject, 1)
myStrataEst <- doEstimationForAllStrata(
RDBESDataObjectForEstim = myH1EstObj,
targetValue = 'SAsampWtLive'
)
} # }