repdes_var: Calculate the variance/covariance matrix for a survey...

View source: R/sur_uncertainty.R

repdes_varR Documentation

Calculate the variance/covariance matrix for a survey statistic (replicate design)

Description

Calculate the variance/covariance matrix for a survey statistic (replicate design)

Usage

repdes_var(x, type = "mean", ids, sv, svyrep_attributes)

Arguments

x

vector of data

type

character. One of 'mean' or 'total' depending on the scale of statistic

ids

numeric. vector of indices to operate on

sv

data.table. Survey vars data.table

svyrep_attributes

list. List of attributes relevant to replicate design surveys


dcaseykc/dtsurvey documentation built on March 9, 2024, 1:09 p.m.