MonolixSuite in R
Auto Light Dark
Auto Light Dark

plotImportanceSampling

[Monolix] Plot Importance sampling convergence.

Plot iterations of the likelihood estimation by importance sampling.

Usage

R
plotImportanceSampling(settings = list())

Arguments

settings

a list of optional settings:

  • grid (logical) add (TRUE) / remove (FALSE) plot grid (default TRUE).

  • fontsize (integer) Plot text font size.

Value

A ggplot object

Examples

R
  initializeLixoftConnectors(software = "monolix")
  project <- file.path(getDemoPath(), "1.creating_and_using_models",
                       "1.1.libraries_of_models", "theophylline_project.mlxtran")
  loadProject(project)

  runPopulationParameterEstimation()
  runLogLikelihoodEstimation()
  
  plotImportanceSampling()

Line plot from plotImportanceSampling titled Importance sampling, showing convergence of the log-likelihood estimation for the theophylline project. The y-axis is -2LL from about 341.39 to 341.62, the x-axis is Monte Carlo size from about 1000 to 10000. The value drops to about 341.39 at 2000, rises to about 341.6, and ends near 341.52, a very narrow range indicating convergence.
R

Last updated: