Plot Functional Curves with Confidence Intervals
plot_ci.Rd
Generates a plot of functional Beta estimates for specified curves, along with their 95% confidence intervals. This function computes the 95% confidence intervals for each curve based on the covariance matrix and the fitted values from the provided object. The resulting plot includes estimated curves, confidence interval ribbons, and a legend distinguishing the curves.
Value
A ggplot2
object displaying the Beta estimates and confidence intervals for the specified curves.
Examples
if (FALSE) { # \dontrun{
if (requireNamespace("ggplot2", quietly = TRUE)) {
# Assuming `model_object` is an object of class 'vd_fit'
plot_functional_curves_combined(model_object, beta = 1, curves = c(50, 70, 100))
}
} # }