loglikPlot: Plot Chain of Loglik Using GGplot

Description Usage Arguments See Also Examples

View source: R/loglik_plot.R

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

1
loglikPlot(loglik)

Arguments

loglik

A vector with the estimated model loglik chain

See Also

logLik.bayesbr,envelope

Examples

1
2
3
4
5
6
7
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)

bayesbr documentation built on July 17, 2021, 1:07 a.m.