View source: R/base-sampling-result.R
| new_sampling_result | R Documentation |
Internal constructor for the S3 class shared by every estimation and
sample-size function in the package. It bundles the point estimate,
variance/standard error, confidence interval, a step-by-step record of
the calculation, and a short pedagogical note into a single object so
that every function in sampleone returns a consistent, richly
documented result rather than a bare number.
new_sampling_result(
metodo,
estimativa,
variancia = NULL,
intervalo_confianca = NULL,
nivel_confianca = NULL,
memoria_calculo = character(),
interpretacao = NULL,
insight = NULL,
referencias = character(),
formula_apostila = character(),
dados_entrada = list()
)
metodo |
Character. Short label for the sampling method/formula
used (e.g. |
estimativa |
Named list with the main numeric result(s), e.g.
|
variancia |
Optional named list with variance/standard-error components. |
intervalo_confianca |
Optional numeric vector of length 2, or
|
nivel_confianca |
Numeric confidence level used, e.g. |
memoria_calculo |
Character vector with a human-readable, step-by-step trace of the calculation. |
interpretacao |
Character scalar with a plain-language interpretation of the result. |
insight |
Character scalar with a short pedagogical suggestion (e.g. pointing to a related method worth comparing). |
referencias |
Character vector of bibliographic references backing the formula used, beyond the course notes. |
formula_apostila |
Character scalar identifying the equation
number(s) in the source course notes (e.g. |
dados_entrada |
Named list with the (validated) inputs actually used by the function, for transparency and reproducibility. |
An object of class sampling_result.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.