Skip to contents

Uses the delta method to compute pointwise confidence intervals.

Usage

compute_curve_ci(
  grid,
  model_name,
  fit,
  level = 0.95,
  independent_variable = "concentration"
)

Arguments

grid

Data frame from generate_prediction_grid().

model_name

Character. Model name.

fit

Fitted model object (must support coef() and vcov()).

level

Numeric. Confidence level. Default 0.95.

independent_variable

Character. Default "concentration".

Value

Data frame with columns yhat, ci_lower, ci_upper, se_y.