View source: R/doEstimationForAllStrata.R
doEstimationForAllStrata | R Documentation |
Estimate totals and means, and try to generate samples variances for all strata in an RDBESEstObject
doEstimationForAllStrata(RDBESEstObjectForEstim, targetValue, verbose = FALSE)
RDBESEstObjectForEstim |
The RDBESEstObject to generate estimates for |
targetValue |
The field to estimate for, for example "SAsampWtLive" |
verbose |
(Optional) If set to TRUE more detailed text will be printed out by the function. Default is FALSE |
A data frame containing estimates for all strata
## Not run:
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'
)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.