R/calc_expectedValues.R
calc_expectedValues.Rd
Takes an object of class costeffectiveness_tree.
calc_expectedValues(osNode) # S3 method for default calc_expectedValues(osNode) # S3 method for costeffectiveness_tree calc_expectedValues(osNode)
osNode |
---|
osNode
# NOT RUN { ## read-in decision tree osNode <- costeffectiveness_tree(yaml_tree = "raw data/LTBI_dtree-cost-distns.yaml") print(osNode, "type", "p", "distn", "mean", "sd") ## calculate a single realisation expected values osNode <- calc_expectedValues(osNode) print(osNode, "type", "p", "distn", "mean", "sd", "payoff", "sampled") ## calculate multiple realisation for specific nodes MonteCarlo_expectedValues(osNode, n=100) # }