Learn R Programming

WMAP (version 1.1.0)

get_weights: Extract sample weights

Description

A generic function to extract sample weights from objects of class 'balancing_weights'

Usage

get_weights(object)

Value

Empirically normalized sample weights.

Arguments

object

An objects of class 'balancing_weights'.

Examples

Run this code
data(demo)
output1 <- balancing.weights(S, Z, X, method = "IC", naturalGroupProp)
get_weights(output1)

Run the code above in your browser using DataLab