KernelReg.fit()

statsmodels.nonparametric.kernel_regression.KernelReg.fit

KernelReg.fit(data_predict=None) [source]

Returns the mean and marginal effects at the data_predict points.

Parameters:

data_predict : array_like, optional

Points at which to return the mean and marginal effects. If not given, data_predict == exog.

Returns:

mean : ndarray

The regression result for the mean (i.e. the actual curve).

mfx : ndarray

The marginal effects, i.e. the partial derivatives of the mean.

© 2009–2012 Statsmodels Developers
© 2006–2008 Scipy Developers
© 2006 Jonathan E. Taylor
Licensed under the 3-clause BSD License.
http://www.statsmodels.org/stable/generated/statsmodels.nonparametric.kernel_regression.KernelReg.fit.html

在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号

意见反馈
返回顶部