Model
Represents one of the PBL models. Look at the Building Models section for a tutorial.
Constructor
new Model(modelJson: JSONObject)
Methods
getRiskToTime(data: Data, time?: moment.Moment | Date) => number
Returns the risk of incidence of the model outcome at the time specified in the time argument. The time argument is optional and is defaulted to one year.
getSurvivalToTime(data: Data, time?: moment.Moment | Date) => number
Returns the probability of surviving the model outcome at the time specified in the time argument. The time argument is optional and is defaulted to one year.