cv.res {SIMle}R Documentation

Cross validation result by specific criteria

Description

this function gets the cross validation result by specific criteria.

Usage

cv.res(ts, c, d, b_time, b_timese, mp_type, ops, r = 1, s = 1, per = 0, k = 0)

Arguments

ts

ts is the data set which is a time series data typically

c

the maximum value of number of basis for time input

d

the maximum value of number of basis for variate input

b_time

type of basis for time input

b_timese

type of basis for variate input

mp_type

select type of mapping function, "algeb" indicates algebraic mapping on the real line. "logari" represents logarithmic mapping on the real line

ops

Criteria for choosing the number of bases are provided by the package, offering four options: "AIC," "BIC," "CV," and "Kfold," each corresponding to a specific Criteria

r

indicates number of variate

s

s is a positive scaling factor, the default is 1

per

the percentage for test set used in "CV" option

k

the number of fold used in "Kfold" option

Value

A data frame containing the criterion values corresponding to "c" and "d". The first element refers to the optimal number of basis for time input, and the second element refers to the optimal number of basis for variate.


[Package SIMle version 0.1.0 Index]