weights.nonprob: Extract the inverse probability weights

View source: R/methods.R

weights.nonprobR Documentation

Extract the inverse probability weights

Description

A generic function weights that returns inverse probability weights (if present)

Usage

## S3 method for class 'nonprob'
weights(object, ...)

Arguments

object

a nonprob class object

...

other arguments passed to methods (currently not supported)

Value

A vector of weights or a NULL extracted from the nonprob object i.e. element "ipw_weights"


nonprobsvy documentation built on April 3, 2025, 7:08 p.m.