PredTSParam-class: S4 class for the parameters for prediction based on time...

Description Slots Examples

Description

Definition of the S4 class named PredTSParam for the parameters to make predictions in the optimization approach to selective editing.

Slots

EdData

StQ object with the edited data.

VarNames

Character vector with the names of the variables whose probability errors are to be computed.

DomainNames

Character vector with the names of the variables determining the domains of the population within which predictions are to be calculated separately.

Imputation

ImputationParam object with the parameters to imputed missing values during the computation of predicted values and their standard deviations (predition error standard deviations).

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# An empty PredlmParam object:
new(Class = 'PredTSParam')

## Not run: 
StQList <- readRDS('../E30183.FF.StQList.sub.rds')
TS.list <- list(Reg = list('RegDiffTSPred', forward = 2L),
                Stat = list('StatDiffTSPred', forward = 2L),
                StatReg = list('StatRegDiffTSPred', forward = 2L),
                Arima = list('AutoArimaTSPred', forward = 2L))
VarNames <- c('CifraNeg_13.___', 'Personal_07.__1._1._')
BestTSPredParam <- new(Class='BestTSPredParam', TSPred.list = TS.list, VarNames = VarNames)

ImpParam <- new(Class = 'MeanImputationParam',
                VarNames = 'CifraNeg_13.___',
                DomainNames =  'Tame_05._4.')
PredTSParam <- new(Class = 'PredTSParam',
                   TS = StQList,
                   Param = BestTSPredParam,
                   Imputation = ImpParam)



## End(Not run)

david-salgado/StQPrediction documentation built on May 14, 2019, 9:33 p.m.