plotFormula {dynr}R Documentation

Plot the formula from a model

Description

Plot the formula from a model

Usage

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.

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.

Value

ggplot object


[Package dynr version 0.1.16-105 Index]