svrep0.6.4 package

Tools for Creating, Updating, and Analyzing Survey Replicate Weights

add_inactive_replicates

Add inactive replicates to a survey design object

as_bootstrap_design

Convert a survey design object to a bootstrap replicate design

as_data_frame_with_weights

Convert a survey design object to a data frame with weights stored as ...

as_fays_gen_rep_design

Convert a survey design object to a replication design using Fay's gen...

as_gen_boot_design

Convert a survey design object to a generalized bootstrap replicate de...

as_random_group_jackknife_design

Convert a survey design object to a random-groups jackknife design

calibrate_to_estimate

Calibrate weights from a primary survey to estimated totals from a con...

calibrate_to_sample

Calibrate weights from a primary survey to estimated totals from a con...

compress_design

Produce a compressed representation of a survey design object

distribute_matrix_across_clusters

Helper function to turn a cluster-level matrix into an element-level m...

estimate_boot_reps_for_target_cv

Estimate the number of bootstrap replicates needed to reduce the boots...

estimate_boot_sim_cv

Estimate the bootstrap simulation error

get_design_quad_form

Determine the quadratic form matrix of a variance estimator for a surv...

get_nearest_psd_matrix

Approximates a symmetric, real matrix by the nearest positive semidefi...

getvars

Get variables from a database

ht_matrix_to_joint_probs

Compute the matrix of joint inclusion probabilities from the quadratic...

is_psd_matrix

Check whether a matrix is positive semidefinite

libraries

Public Libraries Survey (PLS): A Census of U.S. Public Libraries in FY...

make_deville_tille_matrix

Create a quadratic form's matrix for a Deville-Tillé variance estimato...

make_fays_gen_rep_factors

Form replication factors using Fay's generalized replication method

make_gen_boot_factors

Creates replicate factors for the generalized survey bootstrap

make_ppswor_approx_matrix

Create a quadratic form's matrix to represent a variance estimator for...

make_quad_form_matrix

Represent a variance estimator as a quadratic form

make_rwyb_bootstrap_weights

Create bootstrap replicate weights for a general survey design, using ...

make_sd_matrix

Create a quadratic form's matrix to represent a successive-difference ...

make_srswor_matrix

Create a quadratic form's matrix to represent the basic variance estim...

make_twophase_quad_form

Combine quadratic forms from each phase of a two phase design

redistribute_weights

Redistribute weight from one group to another

rescale_reps

Rescale replicate factors

shift_weight

(Internal function) Shift weight from one set of cases to another

shuffle_replicates

Shuffle the order of replicates in a survey design object

stack_replicate_designs

Stack replicate designs, combining data and weights into a single obje...

subsample_replicates

Retain only a random subset of the replicates in a design

summarize_rep_weights

Summarize the replicate weights

svrep-package

svrep: Tools for Creating, Updating, and Analyzing Survey Replicate We...

svyby_repwts

Compare survey statistics calculated separately from different sets of...

variance-estimators

Variance Estimators

wls_hat_matrix

Create the "hat matrix" for weighted least squares regression

Provides tools for creating and working with survey replicate weights, extending functionality of the 'survey' package from Lumley (2004) <doi:10.18637/jss.v009.i08>. Implements bootstrap methods for complex surveys, including the generalized survey bootstrap as described by Beaumont and Patak (2012) <doi:10.1111/j.1751-5823.2011.00166.x>. Methods are provided for applying nonresponse adjustments to both full-sample and replicate weights as described by Rust and Rao (1996) <doi:10.1177/096228029600500305>. Implements methods for sample-based calibration described by Opsomer and Erciulescu (2021) <https://www150.statcan.gc.ca/n1/pub/12-001-x/2021002/article/00006-eng.htm>. Diagnostic functions are included to compare weights and weighted estimates from different sets of replicate weights.

  • Maintainer: Ben Schneider
  • License: GPL (>= 3)
  • Last published: 2024-04-26