plot.eicm {eicm}R Documentation

Quick plot EICM results

Description

Multiple types of plots for EICM models: coefficients, network topology, confidence intervals and likelihood profiles. Allows to plot a single model or the comparison between an estimated and a true model.

Usage

## S3 method for class 'eicm'
plot(
  x,
  type = ifelse(is.null(true.model), "network", "coefficients"),
  true.model = NULL,
  ...
)

Arguments

x

a EICM model.

type

character. The type of plot, one of confint, profile, network or coefficients. See details.

true.model

the true model to compare with (usually, the one used for simulating the data).

...

further arguments to pass to coefficientComparisonPlot or other plotting functions.

Details

If no true.model is provided, type must be one of confint, profile, network.

If true.model is provided, type must be one of network or coefficients. In the latter case, see coefficientComparisonPlot for possible options.

If x is of type eicm.list (as returned by eicm), this function first tries to plot the model after network selection, then, if it was not computed, the fitted model with the full network.

Value

If true.model is provided and type="coefficients", returns a named vector with accuracy statistics (invisibly). Otherwise, NULL.

See Also

coefficientComparisonPlot, confint.eicm


[Package eicm version 1.0.3 Index]