getExpectedMeasIntervals | R Documentation |
This functions uses posterior samples to quantify uncertainty in the expected measurements from fitted models.
getExpectedMeasIntervals(expectedMeas, mass = 0.9, method = c("eti", "hdi"))
expectedMeas |
A |
mass |
Number between 0 and 1 indicating the probability mass for which to calculate the intervals. |
method |
String indicating the type of interval: 'eti' for equal-tailed
using |
A data.table
containing lower and upper bounds of the expected
measurement for each combination of feature, time, and possibly condition
and covariate.
getExpectedMeas()
, getStatsIntervals()
library('data.table') y = GSE34018$y metadata = GSE34018$metadata fit = getModelFit(y, metadata) fit = getPosteriorFit(fit) fit = getPosteriorSamples(fit, nPosteriorSamples = 10L) measFitSamps = getExpectedMeas( fit, times = seq(0, 24, 0.5), fitType = 'posterior_samples', features = c('13170', '12686')) measFitInts = getExpectedMeasIntervals(measFitSamps)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.