get_plans_weights: Extract the sampling weights from a redistricting simulation.

View source: R/redist_plans.R

get_plans_weightsR Documentation

Extract the sampling weights from a redistricting simulation.

Description

May be NULL if no weights exist (MCMC or optimization methods).

Usage

get_plans_weights(plans)

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

Arguments

plans, object

the redist_plans object

...

Ignored.

Value

A numeric vector of weights, with an additional attribute resampled indicating whether the plans have been resampled according to these weights. If weights have been resampled, this returns the weights before resampling (i.e., they do not correspond to the resampled plans).

numeric vector


redist documentation built on April 3, 2023, 5:46 p.m.