You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I am having an issue with the GLM initialization.
Here is my code:
le_model=sm.GLM(y=world_data_2014.child_mortality, x=sm.add_constant(world_data_2014.income), family=sm.families.Gaussian(link=sm.families.links.log()))
le_results=le_model.fit()
# do not change the code below()print(le_results.summary())
I'm guessing the y= and x= in the lines y=world_data_2014.child_mortality andx=sm.add_constant(world_data_2014.income) respectively is breaking the GLM function.
Hi, I am having an issue with the GLM initialization.
Here is my code:
and I get this error:
TypeError Traceback (most recent call last)
in <cell line: 1>()
----> 1 le_model = sm.GLM(y=world_data_2014.child_mortality, x=sm.add_constant(world_data_2014.income), family=sm.families.Gaussian(link=sm.families.links.log()))
2
3 le_results = le_model.fit()
4
5
TypeError: GLM.init() missing 2 required positional arguments: 'endog' and 'exog'
Any suggestions?
The text was updated successfully, but these errors were encountered: