MSEi: Mean squared error (MSE) with bias-variance decomposition

Description Usage Arguments Value Note Examples

View source: R/TSEind.R

Description

Calculates MSE with bias-variance decomposition when Actual# and Survey# have independent samples

Usage

1
MSEi(Actual1, Survey1, ...)

Arguments

Actual1

data from a "gold standard" survey; data are assumed to be the "actual" response, without survey error

Survey1

data from another survey, but with survey error; function will calculate MSE with bias-variance decomposition for this survey

...

used for additional surveys with survey error, survey 2 through survey #

Value

Matrix with MSE, bias^2, and variance values for survey 1 through survey #

Note

Make sure to properly order inputs, per the example: for each survey, inputs must be paired as Actual#, Survey#, and each pair given in sequential order

Examples

1
2
MSEi(Actual1=TESTIND$A1, Survey1=TESTIND$S1, Actual2=TESTIND$A1, Survey2=TESTIND$S2,
Actual3=TESTIND$A2, Survey3=TESTIND$S3)

TSEind documentation built on July 19, 2019, 5:05 p.m.

Related to MSEi in TSEind...