Learn R Programming

SamplingStrata (version 1.5-4)

checkInput: Checks the inputs to the package: dataframes "errors", "strata" and "sampling frame"

Description

This functions checks the internal structure of the different input dataframes ("errors", "strata" and "sampling frame"), and also the correctness of the relationships among them.

Usage

checkInput(errors=NULL, strata=NULL, sampframe=NULL)

Arguments

errors

Dataframe containing the precision levels expressed in terms of maximum acceptable coefficients of variation that estimates of target variables Y's of the survey must comply.

strata

Dataframe containing the information related to strata.

sampframe

Dataframe containing the information related to all the units belonging to the population of interest.

Author

Giulio Barcaroli

Examples

Run this code
if (FALSE) {
library(SamplingStrata)
data(swisserrors)
data(swissstrata)
data(swissframe)
checkInput(swisserrors,swissstrata,swissframe)
checkInput(strata=swissstrata,sampframe=swissframe)
checkInput(strata=swissstrata)
}

Run the code above in your browser using DataLab