Prior

Overview:

class epipi.Prior(parameters)[source]

The abstract class for prior

Parameters:

parametersany

The parameters of the prior distribution

class epipi.NormalPrior(mu, sigma)[source]

A class for normal prior, can generate the corresponding normal prior string for the stan model

Parameters:

mufloat

The mean of the normal distribution

sigmafloat

The standard deviation of the normal distribution

string()[source]

This is to output the normal prior string for the stan model

class epipi.UniformPrior(lower, upper)[source]

A class for uniform prior, can generate the corresponding normal prior string for the stan model

Parameters:

lowerfloat

The lower bound of the uniform distribution

upperfloat

The upper bound of the uniform distribution

string()[source]

This is to output the normal prior string for the stan model