Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

VARglm

Computes a vector autoregressive lag-1 model using GLM


Description

This function computes a VAR model using glm.

Usage

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 <mail@sachaepskamp.com


qgraph

Graph Plotting Methods, Psychometric Data Visualization and Graphical Model Estimation

v1.6.9
GPL-2
Authors
Sacha Epskamp [aut, cre], Giulio Costantini [aut], Jonas Haslbeck [aut], Adela Isvoranu [aut], Angelique O. J. Cramer [ctb], Lourens J. Waldorp [ctb], Verena D. Schmittmann [ctb], Denny Borsboom [ctb]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.