@@ -235,7 +235,7 @@ def _parse_formula(
235
235
Parse and transform the formula for use in a GeneralizedLinearRegressor.
236
236
237
237
The left-hand side and right-hand side of the formula are separated. If an
238
- intercept is present, it wil be removed from the right-hand side, and a
238
+ intercept is present, it will be removed from the right-hand side, and a
239
239
boolean flag to indicate whether or not an intercept should be added to
240
240
the model will be returned.
241
241
@@ -249,7 +249,8 @@ def _parse_formula(
249
249
Returns
250
250
-------
251
251
tuple[Formula, Formula]
252
- The left-hand side and right-hand sides of the formula."""
252
+ The left-hand side and right-hand sides of the formula.
253
+ """
253
254
if isinstance (formula , str ):
254
255
parser = DefaultFormulaParser (include_intercept = include_intercept )
255
256
terms = parser .get_terms (formula )
@@ -2208,6 +2209,7 @@ def covariance_matrix(
2208
2209
2209
2210
mu : array-like, optional, default=None
2210
2211
Array with predictions. Estimated if absent.
2212
+
2211
2213
offset : array-like, optional, default=None
2212
2214
Array with additive offsets.
2213
2215
@@ -2218,19 +2220,18 @@ def covariance_matrix(
2218
2220
The dispersion parameter. Estimated if absent.
2219
2221
2220
2222
robust : boolean, optional, default=None
2221
-
2222
2223
Whether to compute robust standard errors instead of normal ones.
2223
2224
If not specified, the model's ``robust`` attribute is used.
2224
- clusters : array-like, optional, default=None
2225
2225
2226
+ clusters : array-like, optional, default=None
2226
2227
Array with cluster membership. Clustered standard errors are
2227
2228
computed if clusters is not None.
2228
2229
2229
2230
expected_information : boolean, optional, default=None
2230
2231
Whether to use the expected or observed information matrix.
2231
2232
Only relevant when computing robust standard errors.
2232
-
2233
2233
If not specified, the model's ``expected_information`` attribute is used.
2234
+
2234
2235
store_covariance_matrix : boolean, optional, default=False
2235
2236
Whether to store the covariance matrix in the model instance.
2236
2237
If a covariance matrix has already been stored, it will be overwritten.
0 commit comments