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

View source: R/sur_uncertainty.R

surdes_varR Documentation

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

Description

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

Usage

surdes_var(x, type = "mean", ids, sv)

Arguments

x

matrix 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


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