get_validated_weights: Get validated weights for a data frame

View source: R/weighted_helpers.R

get_validated_weightsR Documentation

Get validated weights for a data frame

Description

Validates and returns weights for a data frame according to specified schemes.

Usage

get_validated_weights(
  df_weights,
  scheme = "fh",
  scheme_params = list(rho = 0, gamma = 0),
  details = FALSE
)

Arguments

df_weights

Data frame containing weights and related data.

scheme

Character string specifying the weighting scheme.

scheme_params

List of parameters for the scheme.

details

Logical; if TRUE, returns detailed output.

Value

Numeric vector or list of validated weights.


weightedsurv documentation built on Dec. 23, 2025, 1:07 a.m.