Description Usage Arguments Value
View source: R/observe.incid.R
a long dataset (repeated measures within id) with a set of timestamped qualitative codes will be reduced to just the date of first occurence each code before the deadline (index date)
1 | observe.incid(data, id, index.date, value, valid.values, relative = F)
|
data |
a data frame with a 'date' column, an index.date column, an id column, a value column to be reduced to one row per id with the timestamp of the earliest observation of any valid value. |
id |
name of id column. |
index.date |
name of index date column; used for relative measures of incidence |
value |
name of column with actual value corresponding to the label of metric contained in the code column |
valid.values |
optional list of valid codes to weed out irrelevant measures |
relative |
logical indicating whether or not incidence dates are number of days relative to index.date |
a data frame with one row per id and columns for each valid type of value containing the timestamp (date) of incidence
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.