plot_confidence_intervals: Plot confidence intervals

View source: R/plot_confidence_intervals.R

plot_confidence_intervalsR Documentation

Plot confidence intervals

Description

Plot confidence intervals

Usage

plot_confidence_intervals(
  daily_summary,
  mu_varname = "mu_HR",
  sd_varname = "sd_HR",
  type = c("continuous", "categorical"),
  critical_value = qnorm(p = 0.05/2, lower.tail = FALSE)
)

Arguments

daily_summary

a tibble, ideally the output of prep_daily_summary().

mu_varname

a character entry indicating the column name that contains the sample means.

sd_varname

a character entry indicating the column name that contains the sample standard deviations.

type

the variable type, it can be "continuous" or "categorical"

critical_value

the default value is a z-critical value with 95% confidence (assuming a normal distribution of the sample mean).

Value

A plot containing the confidence intervals of a PA descriptor in daily_summary. Each point range in the plot corresponds to a participant in a cohort.


audiracmichelle/fitibble documentation built on Feb. 2, 2023, 3:51 p.m.