Description Usage Arguments Value Examples
Calculate the mean and CI around time series
1 2 | calcTrajCI(in.dt, in.col.meas, in.col.by = NULL, in.type = c("normal",
"boot"), ...)
|
in.dt |
Data table in long format |
in.col.meas |
Name of the column with the measurement |
in.col.by |
Column names for grouping (default NULL - no grouping). Typically, you want to use at least a column with time. |
in.type |
Choice of normal approximation or boot-strapping |
... |
Other params passed to smean.cl.normal and smean.cl.boot; these include |
Datatable with columns: Mean, lower and upper CI, and grouping columns if provided.
1 2 3 4 5 6 7 8 9 10 | require(tca)
# generate synthetic time series; 100 time points long, with 10 randomly placed NAs
dt.tmp = genTraj(100, 10, 6, 3, in.addna = 10)
# calculate single stats from all time points
calcTrajCI(dt.tmp, 'objCyto_Intensity_MeanIntensity_imErkCor')
# calculate the mean and CI along the time course
calcTrajCI(dt.tmp, 'objCyto_Intensity_MeanIntensity_imErkCor', 'Metadata_RealTime')
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.