Learn R Programming

TSEwgt (version 0.1.0)

AVESMAPEw: Average symmetric mean absolute percentage error (aSMAPE)

Description

Calculates average symmetric mean absolute percentage error (aSMAPE) under multiple, different weighting schemes

Usage

AVESMAPEw(Actual = data.frame(), Survey = data.frame(),
  Weights = data.frame())

Arguments

Actual

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

Survey

data from a survey; objects are variable columns from a survey that corruspond to variable columns from Actual

Weights

weights to be applied to Survey data; objects are weights columns

Value

Average symmetric mean absolute percentage error (aSMAPE) under multiple, different weighting schemes

Details

aSMAPE for weighting scheme # => mean value of the aSMAPEs for specified variables under weighting scheme # => mean value of aSMAPEs for objects in Survey=data.frame() * objects in Weights=data.frame()

Examples

Run this code
# NOT RUN {
AVESMAPEw(Actual=data.frame(TESTWGT$A1, TESTWGT$A2),
Survey=data.frame(TESTWGT$Q1, TESTWGT$Q2),
Weights=data.frame(TESTWGT$W1, TESTWGT$W2))
# }

Run the code above in your browser using DataLab