Advertisement

计量经济学中的均值回归与分位数回归及岭回归、Lasso回 归和ENet模型的学习笔记——基于R(一)

阅读量:

笔记前言

复制代码
    >data=iris[,1:4]
    >r1=lm(Sepal.Length~Sepal.Width,data)
    >summary(r1)
    Call:
    lm(formula = Sepal.Length ~ Sepal.Width, data = data)
    
    Residuals:
    Min      1Q  Median      3Q     Max 
    -1.5561 -0.6333 -0.1120  0.5579  2.2226 
    
    Coefficients:
            Estimate Std. Error t value Pr(>|t|)    
    (Intercept)   6.5262     0.4789   13.63   <2e-16 ***
    Sepal.Width  -0.2234     0.1551   -1.44    0.152    
    ---
    Signif. codes:  0 ‘***’ 0.001 ‘**’ 0.01 ‘*’ 0.05 ‘.’ 0.1 ‘ ’ 1
    
    Residual standard error: 0.8251 on 148 degrees of freedom

全部评论 (0)

还没有任何评论哟~