VARglm: Computes a vector autoregressive lag-1 model using GLM

Description Usage Arguments Value Author(s)

View source: R/VARglm.R

Description

This function computes a VAR model using glm.

Usage

1
VARglm(x, family, vars, adjacency, icfun = BIC, ...)

Arguments

x

A data frame

family

The family to be used. Defaults to gaussian if data is continuous or binomial if data is binary

vars

Vector of variables to predict. If missing all variables are predicted.

adjacency

Adjacency matrix. If missing full network is estimated

icfun

Information criterium function to be included in the output

...

Arguments used in the icfun

Value

A list containing:

graph

The estimated graph

IC

The information criterium

Author(s)

Sacha Epskamp <[email protected]


qgraph documentation built on April 25, 2018, 5:04 p.m.