This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import matplotlib.pyplot as plt | |
| import numpy as np | |
| from scipy.integrate import odeint | |
| # Set random seed (for reproducibility) | |
| np.random.seed(1000) | |
| # Start and end time (in milliseconds) | |
| tmin = 0.0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| best <- function(state, outcome) { | |
| ## Read outcome data | |
| ## Check that state and outcome are valid | |
| ## Return hospital name in that state with lowest 30-day death | |
| ## rate | |
| source("sortHospitalsByOutcome.R") | |
| head(sortHospitalsByOutcome(state, outcome), 1) | |
| } |