SplineWithSimultaneousConfIntervals: Plots spline with confidence intervals

View source: R/splinewithsimultaneousconfint.R

SplineWithSimultaneousConfIntervalsR Documentation

Plots spline with confidence intervals

Description

Plots spline with confidence intervals

Usage

SplineWithSimultaneousConfIntervals(
  outcome,
  predictor,
  type = "Binary Logit",
  subset = NULL,
  weights = NULL,
  seed = 42,
  number.draws = 30,
  confidence = 0.95,
  trim.padding = FALSE
)

Arguments

outcome

Outcome variable shown in the y-axis. This should be convertible using AsNumeric.

predictor

Predictor variable shown in the x-axis. This should be a numeric or date variable.

type

Regression link function used. Currently can be "Binary Logit" or "Linear".

subset

Optional logical vector of the same length as outcome and predictor specifying whether the observation should be included in the analysis.

weights

Optional numeric vector used as sampling weights.

seed

Random seed for reproducibility

number.draws

Number of possible trend lines to super-impose.

confidence

Width of confidence interval shown around the spline.

trim.padding

Logical; whether to remove padding around plotly chart. Default is set to false so that output is the same as old charts.


Displayr/flipPlots documentation built on Feb. 26, 2024, 12:40 a.m.