Untitled

mail@pastecode.io avatar
unknown
plain_text
3 years ago
2.2 kB
1
Indexable
Never
Call:
lm(formula = Choice ~ sex + Education, data = my_data)

Residuals:
    Min      1Q  Median      3Q     Max 
-0.5713 -0.5146  0.4287  0.4854  0.5137 

Coefficients: (1 not defined because of singularities)
            Estimate Std. Error t value Pr(>|t|)    
(Intercept)  0.65638    0.17683   3.712 0.000239 ***
sex               NA         NA      NA       NA    
Education   -0.02835    0.03832  -0.740 0.459925    
---
Signif. codes:  0 ‘***’ 0.001 ‘**’ 0.01 ‘*’ 0.05 ‘.’ 0.1 ‘ ’ 1

Residual standard error: 0.5003 on 349 degrees of freedom
  (56 observations deleted due to missingness)
Multiple R-squared:  0.001566,  Adjusted R-squared:  -0.001295 
F-statistic: 0.5473 on 1 and 349 DF,  p-value: 0.4599

> my_data <- read_excel("D:/data");
Error in file(con, "rb") : cannot open the connection
In addition: Warning message:
In file(con, "rb") : cannot open file 'D:/data': Permission denied
> my_data <- read_excel("D:/data1");
Error: `path` does not exist: ‘D:/data1’
> my_data <- read_excel("D:/data1");
Error: `path` does not exist: ‘D:/data1’
> my_data <- read_excel("D:/data1.xls");
Error: `path` does not exist: ‘D:/data1.xls’
> my_data <- read_excel("D:/data1.xlsx");

-
/
                                                                              
> m1.lm <- lm(Choice ~ sex + Education, data = my_data)
> summary(m1.lm)

Call:
lm(formula = Choice ~ sex + Education, data = my_data)

Residuals:
    Min      1Q  Median      3Q     Max 
-0.5713 -0.5146  0.4287  0.4854  0.5137 

Coefficients: (1 not defined because of singularities)
            Estimate Std. Error t value Pr(>|t|)    
(Intercept)  0.65638    0.17683   3.712 0.000239 ***
sex               NA         NA      NA       NA    
Education   -0.02835    0.03832  -0.740 0.459925    
---
Signif. codes:  0 ‘***’ 0.001 ‘**’ 0.01 ‘*’ 0.05 ‘.’ 0.1 ‘ ’ 1

Residual standard error: 0.5003 on 349 degrees of freedom
  (56 observations deleted due to missingness)
Multiple R-squared:  0.001566,  Adjusted R-squared:  -0.001295 
F-statistic: 0.5473 on 1 and 349 DF,  p-value: 0.4599

>