https://github.com/cran/laeken
Raw File
Tip revision: c70ecbc6eef5e383c6f18d3f740cf903402bd169 authored by Andreas Alfons on 06 June 2011, 00:00:00 UTC
version 0.3
Tip revision: c70ecbc
variance.R
# ---------------------------------------
# Author: Andreas Alfons
#         Vienna University of Technology
# ---------------------------------------

variance <- function(inc, weights = NULL, years = NULL, breakdown = NULL, 
		design = NULL, data = NULL, indicator, alpha = 0.05, 
		na.rm = FALSE, type = "bootstrap", gender = NULL, method = 'mean', ...) {
	# initializations
	type <- match.arg(type)
	# call function corresponding to 'type'
	switch(type,
			bootstrap = bootVar(inc, weights, years, breakdown, design, 
					data, indicator, alpha=alpha, na.rm=na.rm, gender=gender, method=method, ...))
}

back to top