Learn R Programming

lsasim (version 2.1.4)

recalc_final_weights: Recalculate final weights

Description

Recalculate final weights given the replicate weights

Usage

recalc_final_weights(data, w_cols, replicate_weight = 1, reorder = TRUE)

Value

input data with recalculated final weights, incorporating the replicate weights

Arguments

data

dataset

w_cols

columns containing the weights

replicate_weight

scalar with the replicate weights

reorder

if `TRUE`, reorders the dataset so that the replicate weights appear before the final weights