calculatePosteriors: Calculate Posterior Probabilities for Infered Parameters

Description Usage Arguments Examples

Description

Uses numeric methods to estimate posteriors for the infered parameters alpha (synthesis rate) and beta (degredation rate). Currently uses a flat prior for both alpha and beta as a default. This function is written such that non-flat priors may be used in the future.

Usage

1
2
3
4
## S4 method for signature 'basicKineticModel'
calculatePosteriors(object,
  alphaRange = numeric(2), betaRange = numeric(2), paramSpaceSize = 10^4,
  dispByGene = T, logProbAlpha = NULL, logProbBeta = NULL)

Arguments

object

A basicKineticModel object

alphaRange

Scale factors used to calculate the upper and lower bounds of the parameter range explored for alpha. These scale factors will be applied to the infered value of alpha. Must be defined as c(lower,upper).

betaRange

Scale factors used to calculate the upper and lower bounds of the parameter range explored for beta. These scale factors will be applied to the infered value of beta. Must be defined as c(lower,upper).

paramSpaceSize

The total size of parameter space to numerically integrate over. Half of the parameter space will be given to each parameter.

dispByGene

Boolean controlling the expected nature of the dispersionModel. See dispersionModel description in inferParameters for more details.

logProbAlpha

A function that returns the log probability for a given value of alpha

lobProbBeta

A function that returns the log probability for a given value of beta

Examples

1
EXAMPLE HERE

ndukler/tkSim documentation built on May 16, 2019, 8:12 p.m.