naive_confidence_intervals: Naive confidence interval

View source: R/misc.R

naive_confidence_intervalsR Documentation

Naive confidence interval

Description

Naive confidence interval

Usage

naive_confidence_intervals(
  x,
  alpha = 0.05,
  var = NULL,
  return_all_times = FALSE
)

Arguments

x

The observed data points (a real vector).

alpha

The significance level (a (0, 1)-valued real).

var

The known or estimated variance of the observations, 'x'. If left 'NULL', then the empirical variance of 'x' will be taken (positive real-valued vector or 'NULL').

return_all_times

Should the confidence sequence be returned at each time? (boolean)

Value

A list containing the following vectors:

l

The lower confidence interval (a real vector).

u

The upper confidence interval (a real vector).


WannabeSmith/drconfseq documentation built on Sept. 13, 2023, 3:05 a.m.