plot_ci: Plot confidence intervals

View source: R/plot_confidence_intervals.R

plot_ciR Documentation

Plot confidence intervals

Description

Plot confidence intervals

Usage

plot_ci(
  daily_summary,
  type = c("basic", "sedentary_behavior", "time_use"),
  critical_value = qnorm(p = 0.05/2, lower.tail = FALSE)
)

Arguments

daily_summary

a tibble, ideally the output of prep_daily_summary().

type

the plot type, it can be "basic" or "sedentary_behavior" or "time_use"

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 physical activity 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.