Skip to contents

Generates a line plot of Beta estimates with their 95% confidence intervals for a specified curve. This function computes the 95% confidence intervals for Beta estimates using the fitted values and covariance matrix from the vd_fit object. The resulting plot displays the Beta estimates, lower confidence bounds, and upper confidence bounds as separate lines.

Usage

plot_beta_with_ci(object, curve = 1)

Arguments

object

An object of class 'vd_fit' containing the fitted model results.

curve

An integer specifying the row (curve) of Beta to plot. Default is 1.

Value

A ggplot2 object representing the plot of Beta estimates and confidence intervals.

Examples

if (FALSE) { # \dontrun{
if (requireNamespace("ggplot2", quietly = TRUE)) {
  # Assuming `fit` is an object of class 'vd_fit'
  plot_beta_with_ci(fit, curve = 1)
}
} # }