loglikPlot {bayesbr}R Documentation

Plot Chain of Loglik Using GGplot

Description

The function receives a vector containing the model's loglik chain and displays it through a graph using the GGplot package, through this graph it is possible to see if the model has converged.

Usage

loglikPlot(loglik)

Arguments

loglik

A vector with the estimated model loglik chain

See Also

logLik.bayesbr,envelope

Examples

data("CarTask", package = "bayesbr")

bbr = bayesbr(probability~task + NFCCscale,data = CarTask,
             iter = 100, mean_betas = c(1, 0.5,1.2))
loglik = bbr$loglik

loglikPlot(loglik)

[Package bayesbr version 0.0.1.0 Index]