We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hi,
I am using generalized linear model in statsmodels to fit biological data, which follows the Gamma distribution.
My question is can we make glm to allow a pre-assigned starting coefficient? I know the starting point is calculated by "family.starting_mu()": (y+y.mean())/2, Could it be useful to have a small change at line 386 in generalized_linear_model.py https://github.com/statsmodels/statsmodels/blob/master/statsmodels/genmod/generalized_linear_model.py#L386 like this:
if starting_coefficient is Null: mu = self.family.starting_mu(self.endog) else: mu = np.dot(exog, starting_coefficient)
I saw the similar question raised before: #443 (comment) But I didn't get the point.
Many thanks,
Yi
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Hi,
I am using generalized linear model in statsmodels to fit biological data, which follows the Gamma distribution.
My question is can we make glm to allow a pre-assigned starting coefficient?
I know the starting point is calculated by "family.starting_mu()": (y+y.mean())/2,
Could it be useful to have a small change at line 386 in generalized_linear_model.py
https://github.com/statsmodels/statsmodels/blob/master/statsmodels/genmod/generalized_linear_model.py#L386
like this:
if starting_coefficient is Null:
mu = self.family.starting_mu(self.endog)
else:
mu = np.dot(exog, starting_coefficient)
I saw the similar question raised before:
#443 (comment)
But I didn't get the point.
Many thanks,
Yi
The text was updated successfully, but these errors were encountered: