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

View source: R/sur_uncertainty.R

sur_varR Documentation

Calculate the variance/covariance matrix for a survey statistic

Description

Calculate the variance/covariance matrix for a survey statistic

Usage

sur_var(
  x,
  na.rm = T,
  type = "mean",
  as_list = TRUE,
  svyrep_attributes,
  sv,
  ids,
  st
)

Arguments

x

vector of data

na.rm

logical. If TRUE, omit NAs

type

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

as_list

logical. Return values as list

svyrep_attributes

list. List of attributes relevant to replicate design surveys

sv

data.table. Survey vars data.table

ids

numeric. vector of indices to operate on

st

character. survey type


PHSKC-APDE/dtsurvey documentation built on March 6, 2024, 2:14 p.m.