better / convoys

Implementation of statistical models to analyze time lagged conversions
https://better.engineering/convoys/
MIT License
260 stars 42 forks source link

Error in fit() method #92

Closed holvi-german closed 5 years ago

holvi-german commented 5 years ago

Hey! Awesome library - saved my day!

I've experienced an issue when trying to fit a model:

single.KaplanMeier.fit(B,T)

throws TypeError: fit() missing 1 required positional argument: 'T'.

Can not figure out what's the issue here.

erikbern commented 5 years ago

You need to instantiate the model first!

model = single.KaplanMeier()
model.fit(B, T)

hope that makes sense!