plot.fps_effect_estimation: Plot diagnostics for fps_effect_estimation objects

View source: R/plot_methods.R

plot.fps_effect_estimationR Documentation

Plot diagnostics for fps_effect_estimation objects

Description

Plot diagnostics for fps_effect_estimation objects

Usage

## S3 method for class 'fps_effect_estimation'
plot(
  x,
  type = "effect",
  point = NULL,
  which_domain = "treatment",
  alpha = NULL,
  max_efn = 4,
  ...
)

Arguments

x

An object of class "fps_effect_estimation".

type

Character. One of:

"effect"

Weighted estimate of \mu(t) (or \mu(s,t)) with CI ribbon and optional true-mu overlay. Uses bootstrap CI if available, otherwise analytical SE-based CI.

"comparison"

Weighted vs unweighted side by side, both with CI ribbons.

"fpca_treatment"

Scree + eigenfunctions of the treatment FPCA used in estimation.

"fpca_outcome"

Scree + eigenfunctions of the outcome FPCA (functional outcome only).

"bootstrap_slice"

1-D slice(s) of the causal effect surface with bootstrap CI band. Pass a scalar or vector to point; multiple points yield a patchwork panel. Functional outcome only.

"significance"

Regions / points where the CI excludes 0.

point

Numeric scalar or vector. Time point(s) at which to slice the effect surface (for type = "bootstrap_slice").

which_domain

Character. Either "treatment" or "outcome" (for type = "bootstrap_slice").

alpha

Numeric. Significance level; defaults to x$alpha.

max_efn

Integer. Maximum eigenfunctions shown in FPCA panels.

...

Ignored.

Value

A ggplot2 object.


FPScausal documentation built on Aug. 9, 2026, 9:07 a.m.