ddi_targetSampleSize: targetSampleSize and its children nodes

View source: R/method.R

ddi_targetSampleSizeR Documentation

targetSampleSize and its children nodes

Description

Provides both the target size of the sample (this is the number in the original sample, not the number of respondents) as well as the formula used for determining the sample size. More information on these elements, especially their allowed attributes, can be found in the references.

Usage

ddi_targetSampleSize(...)

ddi_sampleSize(...)

ddi_sampleSizeFormula(...)

Arguments

...

Child nodes or attributes.

Details

Parent nodes

targetSampleSize is contained in dataColl.

targetSampleSize specific child nodes

  • ddi_sampleSize() provides the targeted sample size in integer format.

  • ddi_sampleSizeFormula() includes the formula that was used to determine the sample size.

Value

A ddi_node object.

References

targetSampleSize documentation

sampleSize documentation

sampleSizeFormula documentation

Examples

ddi_targetSampleSize()

# Functions that need to be wrapped in ddi_targetSampleSize()

ddi_sampleSize(385)

ddi_sampleSizeFormula("n0=Z2pq/e2=(1.96)2(.5)(.5)/(.05)2=385 individuals")


Global-TIES-for-Children/rddi documentation built on Oct. 24, 2022, 9:50 p.m.