sample_weights: Derive sampling probabilities

View source: R/sampling.R

sample_weightsR Documentation

Derive sampling probabilities

Description

Derive sampling probabilities

Usage

sample_weights(had_outcome, sampled)

Arguments

had_outcome

A logical indicating if the patient has experienced the outcome or not

sampled

A logical indicating if a patient was sampled or not

Value

A numeric vector of the sampling probability


wjchulme/osutils documentation built on Dec. 20, 2024, 9:56 a.m.