Spark Online Training by Edureka

paths: Extraction functions for 'arx', 'gets' and 'isat' objects

Description Usage Arguments Details Value Author(s) See Also Examples

Description

Extraction functions for objects of class 'arx', 'gets' and 'isat'

Usage

1
2
3
paths(object, ...)
terminals(object, ...)
rsquared(object, ...)

Arguments

object

an object of class 'arx', 'gets' or 'isat'

...

additional arguments

Details

paths and terminals can only be applied on objects of class 'gets' and 'isat'

Value

paths:

a list with the paths searched (each number refers to a regressor in the GUM)

terminals:

a list with the terminal models (each number refers to a regressor in the GUM)

rsquared:

a numeric, the R-squared of the regression

Author(s)

Genaro Sucarrat, http://www.sucarrat.net/

See Also

getsm, getsm, getsv, isat

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
##Simulate from an AR(1):
set.seed(123)
y <- arima.sim(list(ar=0.4), 50)

##Simulate four independent Gaussian regressors:
xregs <- matrix(rnorm(4*50), 50, 4)

##estimate an AR(2) with intercept and four conditioning
##regressors in the mean:
mymod <- arx(y, mc=TRUE, ar=1:2, mxreg=xregs)
rsquared(mymod)

##General-to-Specific (GETS) modelling of the mean:
meanmod <- getsm(mymod)
rsquared(meanmod)

##extract the paths searched:
paths(meanmod)

##extract the terminal models:
terminals(meanmod)


Search within the gets package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.