Learn R Programming

gets (version 0.9)

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

Description

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

Usage

paths(object, ...) terminals(object, ...)

Arguments

object
an object of class 'gets' or 'isat'
...
additional arguments

Value

See Also

getsm, getsv, isat

Examples

Run this code
##Simulate from an AR(1):
set.seed(123)
y <- arima.sim(list(ar=0.4), 100)

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

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

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

##extract the paths searched:
paths(meanmod)

##extract the terminal models:
terminals(meanmod)

Run the code above in your browser using DataLab