repcreate {ILSAstats} | R Documentation |
Creation of Replicate Weights
Description
Creates replicate weights given jackknife replicates and jackknife zones.
Usage
repcreate(df, wt, jkzone, jkrep, repwtname = "RWT", reps = NULL, method)
repcreateILSA(study, year, df, repwtname = "RWT")
Arguments
df |
a data frame. |
wt |
a string specifying the name of the column (within |
jkzone |
a string specifying the name of the column in |
jkrep |
a string specifying the name of the column in |
repwtname |
a string specifying the variable names for the replicate weights. |
reps |
an integer indicating the number of replications to be created.
If |
method |
a string indicating the name of the replication method.
Available options are:
Note that |
study |
a string indicating the study name. For checking available studies use
|
year |
a numeric value indicating the study year. For checking available
years use
|
Value
a data frame.
Examples
head(repdata)
# Creation of replicate weights
RW <- repcreate(df = repdata, # the data frame with all the information
wt = "wt", # the total weights column name
jkzone = "jkzones", # the jkzones column name
jkrep = "jkrep", # the jkreps column name
repwtname = "REPWT", # the desired name for the rep weights
reps = 50, # the number of replications
method = "ICILS") # the name of the method aka the study name
head(RW)