plotFormula function

Plot the formula from a model

Plot the formula from a model

plotFormula(dynrModel, ParameterAs, printDyn = TRUE, printMeas = TRUE, printRS = FALSE, textsize = 4)

Arguments

  • dynrModel: The model object to plot.
  • ParameterAs: The parameter values or names to plot. The underscores in parameter names are saved for use of subscripts. Greek letters can be specified as corresponding LaTeX symbols without backslashes (e.g., "lambda") and printed as greek letters.
  • printDyn: A logical value indicating whether or not to plot the formulas for the dynamic model.
  • printMeas: A logical value indicating whether or not to plot the formulas for the measurement model
  • printRS: logical. Whether or not to print the regime-switching model. The default is FALSE.
  • textsize: The text size use in the plot.

Returns

ggplot object

Details

This function typesets a set of formulas that represent the model. Typical inputs to the ParameterAs argument are (1) the starting values for a model, (2) the final estimated values for a model, and (3) the parameter names. These are accessible with (1) model$xstart, (2) coef(cook), and (3) model$param.names or names(coef(cook)), respectively.

  • Maintainer: Michael D. Hunter
  • License: GPL-3
  • Last published: 2023-11-28