hammerlab / survivalstan

Library of Stan Models for Survival Analysis
Apache License 2.0
124 stars 23 forks source link

add docstring for `surv` syntax #62

Open jburos opened 7 years ago

jburos commented 7 years ago

This is related to PR #60 , which implements surv() syntax to be used in the LHS of the patsy formula for a survival model.

Currently the surv function is a stateful transform generated by patsy.stateful_transform().

It would be nice to add a docstring to this function so that a user can type ?survivalstan.formulas.surv to be reminded of the syntax.

Hopefully this can be done by setting surv.__doc__, but I don't know if this will be supported.