statsmodels.api vs. statsmodels.formula.api in the documentation

158 views
Skip to first unread message

Greg Hines

unread,
Mar 26, 2014, 12:16:14 PM3/26/14
to pystat...@googlegroups.com
Hi, in some parts of the documentation there is the line:

import statsmodels.formula.api as sm

while in other parts there is the line:

import statsmodels.api as sm

These two sm's are different - definitely caused me some confusion. Should probably be changed.

Greg :)

Skipper Seabold

unread,
Mar 26, 2014, 12:30:23 PM3/26/14
to pystat...@googlegroups.com
On Wed, Mar 26, 2014 at 12:16 PM, Greg Hines <ggdh...@gmail.com> wrote:
> Hi, in some parts of the documentation there is the line:
>
> import statsmodels.formula.api as sm

Are you sure it's not

import statsmodels.formula.api as smf

?

I see one that needs to be corrected.

Skipper Seabold

unread,
Mar 26, 2014, 12:35:15 PM3/26/14
to pystat...@googlegroups.com
On Wed, Mar 26, 2014 at 12:30 PM, Skipper Seabold <jsse...@gmail.com> wrote:
> On Wed, Mar 26, 2014 at 12:16 PM, Greg Hines <ggdh...@gmail.com> wrote:
>> Hi, in some parts of the documentation there is the line:
>>
>> import statsmodels.formula.api as sm
>
> Are you sure it's not
>
> import statsmodels.formula.api as smf
>
> ?
>
> I see one that needs to be corrected.

This is the only one I saw. Are there others?

http://statsmodels.sourceforge.net/devel/example_formulas.html

Thanks,

Skipper

Greg Hines

unread,
Mar 26, 2014, 12:41:23 PM3/26/14
to pystat...@googlegroups.com
Yeah - that's the one that I ran into (quickly checked and didn't see any others).

thanks, Greg

Skipper Seabold

unread,
Mar 26, 2014, 12:44:54 PM3/26/14
to pystat...@googlegroups.com
Fixed in master. Online docs should be updated shortly. Thanks for reporting,

Skipper
Reply all
Reply to author
Forward
0 new messages