Learn R Programming

BGVAR (version 2.0.1)

fitted.bgvar: Extract Model Fitted Values

Description

Extracts the fitted values for bgvar.

Usage

# S3 method for bgvar
fitted(object, ..., global = TRUE)

Arguments

object

an object of class bgvar.

...

additional arguments.

global

if TRUE global fitted values are returned otherwise country fitted values.

Value

Returns an T times K matrix, where T is the number of observations and K number of endogenous variables.

Examples

Run this code
# NOT RUN {
library(BGVAR)
data(eerData)
model.ng <- bgvar(Data=eerData,W=W.trade0012,plag=1,saves=100,burns=100)
fitted(model.ng)
# }

Run the code above in your browser using DataLab