fpcdat: A Small But Not Trivial Artificial Sample Data Set

fpcdatR Documentation

A Small But Not Trivial Artificial Sample Data Set

Description

A small dataset mimicking sample data selected with a 2-stage, stratified, cluster sampling without replacement. Allows to run R code contained in the ‘Examples’ section of the ReGenesees package help pages.

Usage

data(fpcdat)

Format

A data frame with 28 observations on the following 12 variables.

psu

Identifier of the primary sampling units, numeric

ssu

Identifier of the second stage sampling units, numeric

stratum

Stratification Variable, a factor with 5 levels: S.1, S.2, S.3, S.4, S.5

sr

Strata type, integer with values 0 (NSR strata) and 1 (SR strata)

fpc1

First stage finite population corrections, given as population sizes (in terms of psu clusters) inside strata, numeric

fpc2

Second stage finite population corrections, given as population sizes (in terms of ssu clusters) inside the corresponding sampled psu, numeric

x

A numeric variable

y

A numeric variable

dom1

A variable defining unplanned estimation domains, factor with 3 levels: A, B, C

dom2

A variable defining unplanned estimation domains, factor with 6 levels: a, b, c, d, e, f

w

Direct weights, numeric

z

A numeric variable

pl.domain

A variable defining planned estimation domains, factor with 3 levels: pd.1, pd.2, pd.3

Details

Though very small, the fpcdat dataset concentrates a lot of interesting features. The sampling design is a complex one, with both self-representing (SR) and not-self-representing (NSR) strata. Sampling fractions are deliberately not negligible, in order to stress the effects of finite population corrections on variance estimation. Moreover, being the observations so few, performing computations on the fpcdat dataset allows to check and understand easily all the effects of setting/changing the global variance estimation options of the ReGenesees package (see e.g. ReGenesees.options).

See Also

ReGenesees.options for setting/changing variance estimation options.

Examples

data(fpcdat)
head(fpcdat)
str(fpcdat)

DiegoZardetto/ReGenesees documentation built on Dec. 16, 2024, 2:03 p.m.