repcreate | R Documentation |
Creates replicate weights given jackknife replicates and jackknife zones.
repcreate(
df,
wt,
jkzone,
jkrep,
repwtname,
reps = NULL,
method = c("TIMSS", "PIRLS", "ICILS", "ICCS")
)
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 large-scale assessment
to determine the replication method to use. Available options are:
|
a data frame.
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.