Questions tagged «named»

3
如何从命名号码中提取号码(没有名称)?
我只是在寻找B1(newx)线性模型系数的值,而不是名称。我只想要0.5的值。我不需要名称“ newx”。 newx <- c(0.5,1.5.2.5) newy <- c(2,3,4) out <- lm(newy ~ newx) out 好像: Call: lm(formula = newy ~ newx) Coefficients: (Intercept) newx 1.5 1.0 我到了这里 但是现在我被困住了。 out$coefficients["newx"] newx 1.0
84 r  vector  named  lm 
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.