SplineWithSimultaneousConfIntervals: Plots spline with confidence intervals

Description Usage Arguments

View source: R/splinewithsimultaneousconfint.R

Description

Plots spline with confidence intervals

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
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 April 13, 2021, 3:50 p.m.