Learn R Programming

TSEind (version 0.1.0)

MAPEi: Mean absolte percentage error (MAPE)

Description

Calculates MAPE when Actual# and Survey# have independent samples

Usage

MAPEi(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 MAPE for this survey

...

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

Value

Matrix with MAPE values for survey 1 through survey #

Examples

Run this code
# NOT RUN {
MAPEi(Actual1=TESTIND$A1, Survey1=TESTIND$S1, Actual2=TESTIND$A1, Survey2=TESTIND$S2,
Actual3=TESTIND$A2, Survey3=TESTIND$S3)
# }

Run the code above in your browser using DataLab