generateFakeData: Generate artificial dataset for demonstration and testing...

View source: R/fakedata.R

generateFakeDataR Documentation

Generate artificial dataset for demonstration and testing purposes.

Description

Generate artificial dataset for demonstration and testing purposes.

Usage

generateFakeData(
  M = 50,
  meanNarea = 1000,
  sW = 100,
  sB = 50,
  sBx = 0.5,
  samplingFraction = 0.1
)

Arguments

M

number of areas.

meanNarea

mean number of population units per area.

sW

within area standard deviation.

sB

between area standard deviation.

sBx

random slope standard deviation.

samplingFraction

sampling fraction used to draw a random sample from the population units.

Value

List containing sample (sam), population totals (Xpop), and true population means for four target variables (mY0, mY1, mY2, mY3).


hbsae documentation built on March 18, 2022, 6:34 p.m.