我有这些命令来使用模型计算带宽规范
Y = G(XB) + epsilon
。
library(np)
bw <- npindexbw(formula=y~x1+x2)
summary(bw)
Single Index Model
Regression data (25 observations, 2 variable(s)):
x1 x2
Beta: 1 0.1661524
Bandwidth: 1.031388
Optimisation Method: Nelder-Mead
Regression Type: Local-Constant
Bandwidth Selection Method: Klein and Spady
Formula: y ~ 1 + x1 + x2
Bandwidth Type: Fixed
Objective Function Value: 0.4394019 (achieved on multistart 2)
Continuous Kernel Type: Second-Order Gaussian
No. Continuous Explanatory Vars.: 1
我想获得Coeffeicnts(Beta值)吗?
我的意思是在lm
命令中我们可以将它作为列表处理(带有$符号)
答案 0 :(得分:0)
应该像
一样简单coefficients(bw)