Skip to contents

A short wrapper for testing if weights data frame and variable are correct.

Usage

assert_weights(weights_df, weights_var)

Arguments

weights_df

Data frame containing id and weight. If not provided, the weights will be set to 1.

weights_var

Character name of column storing weights.