actuals: Function extracts the actual values from the function

Description Usage Arguments Value Author(s) Examples

View source: R/methods.R

Description

This is a simple method that returns the values of the response variable of the model

Usage

1
2
3
4
5
6
7
actuals(object, ...)

## Default S3 method:
actuals(object, ...)

## S3 method for class 'alm'
actuals(object, ...)

Arguments

object

Model estimated using one of the functions of smooth package.

...

A parameter all can also be provided here. If it is FALSE, then in the case of occurrence model, only demand sizes will be returned. Works only with 'alm' class.

Value

The vector of the response variable.

Author(s)

Ivan Svetunkov, [email protected]

Examples

1
2
3
4
5
6
7
xreg <- cbind(rnorm(100,10,3),rnorm(100,50,5))
xreg <- cbind(100+0.5*xreg[,1]-0.75*xreg[,2]+rnorm(100,0,3),xreg,rnorm(100,300,10))
colnames(xreg) <- c("y","x1","x2","Noise")

ourModel <- stepwise(xreg)

actuals(ourModel)

greybox documentation built on Dec. 11, 2019, 1:08 a.m.