actuals: Function extracts the actual values from the function

View source: R/methods.R

actualsR Documentation

Function extracts the actual values from the function

Description

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

Usage

actuals(object, all = TRUE, ...)

## Default S3 method:
actuals(object, all = TRUE, ...)

## S3 method for class 'lm'
actuals(object, all = TRUE, ...)

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

## S3 method for class 'predict.greybox'
actuals(object, all = TRUE, ...)

Arguments

object

Model estimated using one of the functions of smooth package.

all

If FALSE, then in the case of the occurrence model, only demand sizes will be returned.

...

Other parameters to pass to the method. Currently nothing is supported here.

Value

The vector of the response variable.

Author(s)

Ivan Svetunkov, ivan@svetunkov.ru

Examples


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 Sept. 16, 2023, 9:07 a.m.