Learn R Programming

TSE (version 0.1.0)

AVESMAPE: Calculate average symmetric mean absolute percentage error (aSMAPE)

Description

Calculates average symmetric mean absolute percentage error (aSMAPE) for one or more surveys

Usage

AVESMAPE(Actuals1 = data.frame(), Observed1 = data.frame(), ...)

Arguments

Actuals1

= data from a "gold standard" survey; objects are variable columns from "gold standard" survey that corruspond to variable columns Observed1

Observed1

= data from survey 1; objects are variable columns from survey 1 that corruspond to variable columns from Actuals1

...

= "gold standard" data/survey # data for additional surveys

Value

Average symmetric mean absolute percentage error (aSMAPE)

Details

aSMAPE for survey # => mean value of the SMAPEs for specified variables in survey # => mean value of SMAPEs for objects in Observed#=data.frame()

Examples

Run this code
# NOT RUN {
AVESMAPE(Actuals1=data.frame(TESTNUMB$AQ1, TESTNUMB$AQ2),
Observed1=data.frame(TESTNUMB$O1Q1, TESTNUMB$O1Q2),
Actuals2=data.frame(TESTNUMB$AQ1, TESTNUMB$AQ2),
Observed2=data.frame(TESTNUMB$O2Q1, TESTNUMB$O2Q2),
Actuals3=data.frame(TESTNUMB$AQ1, TESTNUMB$AQ2),
Observed3=data.frame(TESTNUMB$O3Q1, TESTNUMB$O3Q2))
# }

Run the code above in your browser using DataLab