GWRResults.
conf_int
()[source]¶Returns the confidence interval of the fitted parameters.
Parameters: |
|
---|---|
Returns: |
|
Notes
The confidence interval is based on the standard normal distribution. Models wish to use a different distribution should overwrite this method.
Examples
>>> import libpysal as ps
>>> from spglm.glm import GLM
>>> import numpy as np
>>> db = ps.io.open(ps.examples.get_path('columbus.dbf'),'r')
>>> y = np.array(db.by_col("HOVAL")).reshape((-1,1))
>>> X = []
>>> X.append(db.by_col("INC"))
>>> X.append(db.by_col("CRIME"))
>>> X = np.array(X).T
>>> model = GLM(y, X)
>>> results = model.fit()
>>> results.conf_int()
array([[ 20.57281401, 72.28355135],
[ -0.42138121, 1.67934915],
[ -0.84292086, -0.12685622]])