loglikPlot {bayesbr} | R Documentation |
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.
loglikPlot(loglik)
loglik |
A vector with the estimated model loglik chain |
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)