calibrate | R Documentation |
Calibrate sample to target
calibrate(
formula,
target_count,
data,
order = NULL,
lambda = 1,
lambda_max = NULL,
n_lambda = 100,
lowlim = 0,
uplim = Inf,
prob_weights = NULL,
verbose = FALSE,
...
)
formula |
sample_count ~ covariates |
target_count |
Number in cell in target |
data |
Dataframe with covariate information, sample and target counts |
order |
What order interactions to balance |
lambda |
Regularization hyperparamter |
lowlim |
Lower bound on weights, default 0 |
uplim |
Upper bound on weights, default Inf |
prob_weights |
Optional sampling weights to include |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.