period_vec_create: Summarize a time series

Description Usage Arguments Value

View source: R/period_vec_create.R

Description

Summarize a time series

Usage

1
2
period_vec_create(datasubset, periods, STAT = c("mean", "median"),
  outcome_var_name = "action")

Arguments

datasubset

data.frame with each row (obervational unit) being an individual decision. With a column named "group" specifying which group of agg_patterns each obseravtion is in, and a column named "period" specifying at what time period each behavior was taken.

periods

Numeric vector length one specifying maximum number of time periods to use for model testing.

STAT

optional character vector length one, default is c("mean", "median").

outcome_var_name

optional character vector length one, default is c("action").

Value

Returns a numeric vector with the c("mean", "median") of the outcome_var_name of the datasubset.


JohnNay/eat documentation built on May 7, 2019, noon