LogLik {VLMCX} | R Documentation |
Log Likelihood for Variable Length Markov Chains with Exopgenous Covariates
Description
Computes the log-likelihood of the data using the estimated parameters of the multinomial logistic regression based on contexts of variable length, that is, a finite suffix of the past, called "context", is used to predict the next symbol, which can have different lengths depending on the past observations themselves.
Usage
LogLik(fit)
Arguments
fit |
a VLMCX object. |
Value
a numeric value with the corresponding log-likelihood
Author(s)
Adriano Zanin Zambom <adriano.zambom@csun.edu>
Examples
n = 1000
d = 2
X = cbind(rnorm(n), rnorm(n))
y = rbinom(n,1,.5)
fit = maximum.context(y, X)
LogLik(fit)
[Package VLMCX version 1.0 Index]