dcmEvidence: modelfit

Description Usage Arguments Value Author(s) See Also Examples

View source: R/dcmEvidence.R

Description

Compute AIC and BIC of a DCM

Usage

1

Arguments

DCM

DCM object.

ts

Timeseries to fit the model to.

Value

Creates 2 extra fields DCM$AIC and DCM$BIC

Author(s)

Bjorn Roelstraete

See Also

spm.dcm.estimate

Examples

1
2
3
4
5
6
# Compute how well the model DCMex fits the timeseries DCMex$sim
 ts <-  dcmGenerate(DCMex, SNR=1, ar=.2, names=c('V1','V2','V3'))
 DCMex <- dcmEvidence(DCMex, ts)

 DCMex$AIC
 DCMex$BIC

FIAR documentation built on June 5, 2018, 5:03 p.m.

Related to dcmEvidence in FIAR...