Learn R Programming

bayesbr (version 0.0.1.0)

loglikPlot: 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

Run this code
# NOT RUN {
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)
# }

Run the code above in your browser using DataLab