Randomly sample covariate rows

draw_covariate_rows(n, df, covariate_weights = NULL)

Arguments

n

number rows to draw

df

data frame to draw from

covariate_weights

default is NULL which draws uniformly at random with replacement from the sample_covariates_df. Otherwise, the weights are used.

Value

new df