Groups
Groups
Sign in
Groups
Groups
pystatsmodels
Conversations
About
Send feedback
Help
Add an intercept to simple OLS
15 views
Skip to first unread message
Russell Jones
unread,
Feb 5, 2018, 4:02:21 PM
2/5/18
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to pystatsmodels
I am using statsmodels to do a simple OLS model. However, I need to set the Y intercept to 0. Can this be done?
X = sm.add_constant(X)
est = sm.OLS(y, X).fit()
Thanks in advance,
Russ
Reply all
Reply to author
Forward
0 new messages