powered by
Function adds randomly generated jackknife-1 zones to the data.
generateRandomJk1Zones (datL, unit, nZones, name = "randomCluster")
The original data with an additional column of the jackknife-zone variable
Data frame containing at least the primary sampling unit variable
Variable name or column number of the primary sampling unit (i.e. student or class identifier)
integer: number of jackknife zones. Note: The umber of jackknife zones must not exceed the number of distinct sampling units
New name of the jackknife-zone variable in the data set
data(lsa) ### We only consider year 2010 lsa10<- lsa[which(lsa[,"year"] == 2010),] lsa10<- generateRandomJk1Zones(datL = lsa10, unit="idclass", nZones = 50)
Run the code above in your browser using DataLab