time_series_plot: time series plot across different interventions

Description Usage Arguments Examples

Description

time series plot across different interventions

Usage

1
2
time_series_plot(nof1, time = NULL, timestamp = NULL,
  timestamp.format = "%m/%d/%Y %H:%M", Outcome.name = "")

Arguments

nof1

nof1 object created using nof1.data

timestamp

time of the nof1 event occurring

timestamp.format

format of the timestamp

Outcomes.name

used to label y-axis outcome variable

Examples

1
2
3
4
5
Y <- laughter$Y
Treat <- laughter$Treat
nof1 <- nof1.data(Y, Treat, ncat = 11, baseline = "Usual Routine", response = "ordinal")
timestamp <- seq(as.Date('2015-01-01'),as.Date('2016-01-31'), length.out = length(Y))
time_series_plot(nof1, timestamp = timestamp, timestamp.format = "%m-%d-%Y", Outcome.name = "Stress")

MikeJSeo/nof1 documentation built on May 30, 2019, 3:41 p.m.