Created
May 29, 2014 12:40
-
-
Save eamartin/4578c77f67cdae4f3a58 to your computer and use it in GitHub Desktop.
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
def predict_expectation(aaf, covariates): | |
sfs = aaf.predict_survival_function(covariates) | |
xvals = sfs.index.values | |
return simps(sfs.values, xvals, axis=0) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment