Free Statistics

of Irreproducible Research!

Author's title

Author*The author of this computation has been verified*
R Software Modulerwasp_Simple Regression Y ~ X.wasp
Title produced by softwareSimple Linear Regression
Date of computationMon, 10 Dec 2018 16:53:02 +0100
Cite this page as followsStatistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?v=date/2018/Dec/10/t15444572226om12r3qs5s9b74.htm/, Retrieved Wed, 22 May 2024 07:18:40 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=315827, Retrieved Wed, 22 May 2024 07:18:40 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact89
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-       [Simple Linear Regression] [correlatie popula...] [2018-12-10 15:53:02] [474dc78f9f78c1bed511cb77e705c8bc] [Current]
Feedback Forum

Post a new message
Dataseries X:
29.82 0.79
3.16 2.21
38.48 2.12
20.82 0.93
0.09 5.38
41.09 3.14
2.97 2.23
0.1 11.88
23.05 9.31
8.46 6.06
9.31 2.31
0.37 6.84
1.32 7.49
154.7 0.72
0.28 4.48
9.4 5.09
11.06 7.44
10.05 1.41
0.06 5.77
0.74 4.84
10.5 2.96
3.83 3.12
2 3.83
198.66 3.11
0.03 2.86
0.41 4.06
7.28 3.32
16.46 1.21
9.85 0.8
0.49 2.52
14.86 1.21
21.7 1.17
34.84 8.17
0.06 5.65
4.53 1.24
12.45 1.46
17.46 4.36
1408.04 3.38
47.7 1.87
0.72 1.03
4.34 1.29
65.7 0.82
4.8 2.84
19.84 1.27
4.31 3.92
11.27 1.95
1.13 4.21
10.66 5.19
5.6 5.51
0.86 2.19
0.07 2.57
10.28 1.53
15.49 2.17
80.72 2.15
6.3 2.07
0.74 3.97
6.13 0.42
1.29 6.86
91.73 1.02
0.88 2.9
5.41 5.87
63.98 5.14
0.24 2.34
0.27 4.73
1.63 2.02
1.79 1.03
4.36 1.58
82.8 5.3
25.37 1.97
11.12 4.38
0.1 2.98
0.46 3.23
15.08 1.89
11.45 1.41
1.66 1.53
0.8 3.07
10.17 0.61
7.94 1.68
9.98 2.92
1236.69 1.16
246.86 1.58
76.42 2.79
32.78 1.88
4.58 5.57
7.64 6.22
60.92 4.61
2.77 1.89
127.25 5.02
7.01 2.1
16.27 5.55
43.18 1.03
24.76 1.17
49 5.69
3.25 8.13
5.47 1.91
6.65 1.22
2.06 6.29
4.65 3.84
2.05 1.66
4.19 1.21
6.16 3.69
3.03 5.83
0.52 15.82
2.11 3.26
22.29 0.99
15.91 0.81
29.24 3.71
14.85 1.53
0.4 2.08
3.8 2.54
1.24 3.46
120.85 2.89
3.51 1.78
2.8 6.08
0.62 3.78
0 7.78
32.52 1.68
25.2 0.87
52.8 1.43
2.26 2.48
0.01 2.94
27.47 0.98
16.71 5.28
0.25 3.58
4.46 5.6
5.99 1.39
17.16 1.56
168.83 1.16
4.99 4.98
3.31 7.52
179.16 0.79
3.8 2.79
7.17 1.91
6.69 4.16
29.99 2.28
96.71 1.1
38.21 4.44
10.6 3.88
2.05 10.8
0.86 3.65
21.76 2.71
143.17 5.69
11.46 0.87
0.05 4.94
0.18 2.45
0.11 3.11
0.19 2.77
0.19 1.49
28.29 5.61
13.73 1.21
9.55 2.7
5.98 1.24
5.3 7.97
5.45 4.06
2.07 5.81
0.55 1.29
10.2 1.24
52.39 3.31
46.76 3.67
21.1 1.32
0.54 4.25
1.23 2.01
9.51 7.25
8 5.79
21.89 1.51
8.01 0.91
47.78 1.32
66.78 2.66
1.11 0.48
6.64 1.13
0.1 2.7
1.34 7.92
10.88 2.34
74 3.33
5.17 5.47
36.35 1.24
45.53 2.84
63.03 4.94
9.206 7.93
317.5 8.22
3.4 2.91
28.54 2.32
29.96 3.57
90.8 1.65
0.01 2.07
23.85 1.03
14.08 0.99
13.72 1.37




Summary of computational transaction
Raw Input view raw input (R code)
Raw Outputview raw output of R engine
Computing time11 seconds
R ServerBig Analytics Cloud Computing Center

\begin{tabular}{lllllllll}
\hline
Summary of computational transaction \tabularnewline
Raw Input view raw input (R code)  \tabularnewline
Raw Outputview raw output of R engine  \tabularnewline
Computing time11 seconds \tabularnewline
R ServerBig Analytics Cloud Computing Center \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=315827&T=0

[TABLE]
[ROW]
Summary of computational transaction[/C][/ROW] [ROW]Raw Input[/C] view raw input (R code) [/C][/ROW] [ROW]Raw Output[/C]view raw output of R engine [/C][/ROW] [ROW]Computing time[/C]11 seconds[/C][/ROW] [ROW]R Server[/C]Big Analytics Cloud Computing Center[/C][/ROW] [/TABLE] Source: https://freestatistics.org/blog/index.php?pk=315827&T=0

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=315827&T=0

As an alternative you can also use a QR Code:  

The GUIDs for individual cells are displayed in the table below:

Summary of computational transaction
Raw Input view raw input (R code)
Raw Outputview raw output of R engine
Computing time11 seconds
R ServerBig Analytics Cloud Computing Center







Linear Regression Model
Y ~ X
coefficients:
EstimateStd. Errort valuePr(>|t|)
(Intercept)48.71117.7052.7510.007
X-3.4274.346-0.7890.431
- - -
Residual Std. Err. 140.899 on 186 df
Multiple R-sq. 0.003
95% CI Multiple R-sq. [0, 0.022]
Adjusted R-sq. -0.002

\begin{tabular}{lllllllll}
\hline
Linear Regression Model \tabularnewline
Y ~ X \tabularnewline
coefficients: &   \tabularnewline
  & Estimate & Std. Error & t value & Pr(>|t|) \tabularnewline
(Intercept) & 48.711 & 17.705 & 2.751 & 0.007 \tabularnewline
X & -3.427 & 4.346 & -0.789 & 0.431 \tabularnewline
- - -  &   \tabularnewline
Residual Std. Err.  & 140.899  on  186 df \tabularnewline
Multiple R-sq.  & 0.003 \tabularnewline
95% CI Multiple R-sq.  & [0, 0.022] \tabularnewline
Adjusted R-sq.  & -0.002 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=315827&T=1

[TABLE]
[ROW][C]Linear Regression Model[/C][/ROW]
[ROW][C]Y ~ X[/C][/ROW]
[ROW][C]coefficients:[/C][C] [/C][/ROW]
[ROW][C] [/C][C]Estimate[/C][C]Std. Error[/C][C]t value[/C][C]Pr(>|t|)[/C][/ROW]
[C](Intercept)[/C][C]48.711[/C][C]17.705[/C][C]2.751[/C][C]0.007[/C][/ROW]
[C]X[/C][C]-3.427[/C][C]4.346[/C][C]-0.789[/C][C]0.431[/C][/ROW]
[ROW][C]- - - [/C][C] [/C][/ROW]
[ROW][C]Residual Std. Err. [/C][C]140.899  on  186 df[/C][/ROW]
[ROW][C]Multiple R-sq. [/C][C]0.003[/C][/ROW]
[ROW][C]95% CI Multiple R-sq. [/C][C][0, 0.022][/C][/ROW]
[ROW][C]Adjusted R-sq. [/C][C]-0.002[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=315827&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=315827&T=1

As an alternative you can also use a QR Code:  

The GUIDs for individual cells are displayed in the table below:

Linear Regression Model
Y ~ X
coefficients:
EstimateStd. Errort valuePr(>|t|)
(Intercept)48.71117.7052.7510.007
X-3.4274.346-0.7890.431
- - -
Residual Std. Err. 140.899 on 186 df
Multiple R-sq. 0.003
95% CI Multiple R-sq. [0, 0.022]
Adjusted R-sq. -0.002







ANOVA Statistics
DfSum SqMean SqF valuePr(>F)
Total_Ecological_Footprint112344.05812344.0580.6220.431
Residuals1863692591.00719852.64

\begin{tabular}{lllllllll}
\hline
ANOVA Statistics \tabularnewline
  & Df & Sum Sq & Mean Sq & F value & Pr(>F) \tabularnewline
Total_Ecological_Footprint & 1 & 12344.058 & 12344.058 & 0.622 & 0.431 \tabularnewline
Residuals & 186 & 3692591.007 & 19852.64 &   &   \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=315827&T=2

[TABLE]
[ROW][C]ANOVA Statistics[/C][/ROW]
[ROW][C] [/C][C]Df[/C][C]Sum Sq[/C][C]Mean Sq[/C][C]F value[/C][C]Pr(>F)[/C][/ROW]
[ROW][C]Total_Ecological_Footprint[/C][C]1[/C][C]12344.058[/C][C]12344.058[/C][C]0.622[/C][C]0.431[/C][/ROW]
[ROW][C]Residuals[/C][C]186[/C][C]3692591.007[/C][C]19852.64[/C][C] [/C][C] [/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=315827&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=315827&T=2

As an alternative you can also use a QR Code:  

The GUIDs for individual cells are displayed in the table below:

ANOVA Statistics
DfSum SqMean SqF valuePr(>F)
Total_Ecological_Footprint112344.05812344.0580.6220.431
Residuals1863692591.00719852.64



Parameters (Session):
Parameters (R input):
par1 = 1 ; par2 = 2 ; par3 = TRUE ;
R code (references can be found in the software module):
library(boot)
cat1 <- as.numeric(par1)
cat2<- as.numeric(par2)
intercept<-as.logical(par3)
x <- na.omit(t(x))
rsq <- function(formula, data, indices) {
d <- data[indices,] # allows boot to select sample
fit <- lm(formula, data=d)
return(summary(fit)$r.square)
}
xdf<-data.frame(na.omit(t(y)))
(V1<-dimnames(y)[[1]][cat1])
(V2<-dimnames(y)[[1]][cat2])
xdf <- data.frame(xdf[[cat1]], xdf[[cat2]])
names(xdf)<-c('Y', 'X')
if(intercept == FALSE) (lmxdf<-lm(Y~ X - 1, data = xdf) ) else (lmxdf<-lm(Y~ X, data = xdf) )
(results <- boot(data=xdf, statistic=rsq, R=1000, formula=Y~X))
sumlmxdf<-summary(lmxdf)
(aov.xdf<-aov(lmxdf) )
(anova.xdf<-anova(lmxdf) )
load(file='createtable')
a<-table.start()
nc <- ncol(sumlmxdf$'coefficients')
nr <- nrow(sumlmxdf$'coefficients')
a<-table.row.start(a)
a<-table.element(a,'Linear Regression Model', nc+1,TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, lmxdf$call['formula'],nc+1)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'coefficients:',1,TRUE)
a<-table.element(a, ' ',nc,TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, ' ',1,TRUE)
for(i in 1 : nc){
a<-table.element(a, dimnames(sumlmxdf$'coefficients')[[2]][i],1,TRUE)
}#end header
a<-table.row.end(a)
for(i in 1: nr){
a<-table.element(a,dimnames(sumlmxdf$'coefficients')[[1]][i] ,1,TRUE)
for(j in 1 : nc){
a<-table.element(a, round(sumlmxdf$coefficients[i, j], digits=3), 1 ,FALSE)
}
a<-table.row.end(a)
}
a<-table.row.start(a)
a<-table.element(a, '- - - ',1,TRUE)
a<-table.element(a, ' ',nc,FALSE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'Residual Std. Err. ',1,TRUE)
a<-table.element(a, paste(round(sumlmxdf$'sigma', digits=3), ' on ', sumlmxdf$'df'[2], 'df') ,nc, FALSE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'Multiple R-sq. ',1,TRUE)
a<-table.element(a, round(sumlmxdf$'r.squared', digits=3) ,nc, FALSE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, '95% CI Multiple R-sq. ',1,TRUE)
a<-table.element(a, paste('[',round(boot.ci(results,type='bca')$bca[1,4], digits=3),', ', round(boot.ci(results,type='bca')$bca[1,5], digits=3), ']',sep='') ,nc, FALSE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'Adjusted R-sq. ',1,TRUE)
a<-table.element(a, round(sumlmxdf$'adj.r.squared', digits=3) ,nc, FALSE)
a<-table.row.end(a)
a<-table.end(a)
table.save(a,file='mytable.tab')
a<-table.start()
a<-table.row.start(a)
a<-table.element(a,'ANOVA Statistics', 5+1,TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, ' ',1,TRUE)
a<-table.element(a, 'Df',1,TRUE)
a<-table.element(a, 'Sum Sq',1,TRUE)
a<-table.element(a, 'Mean Sq',1,TRUE)
a<-table.element(a, 'F value',1,TRUE)
a<-table.element(a, 'Pr(>F)',1,TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, V2,1,TRUE)
a<-table.element(a, anova.xdf$Df[1])
a<-table.element(a, round(anova.xdf$'Sum Sq'[1], digits=3))
a<-table.element(a, round(anova.xdf$'Mean Sq'[1], digits=3))
a<-table.element(a, round(anova.xdf$'F value'[1], digits=3))
a<-table.element(a, round(anova.xdf$'Pr(>F)'[1], digits=3))
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'Residuals',1,TRUE)
a<-table.element(a, anova.xdf$Df[2])
a<-table.element(a, round(anova.xdf$'Sum Sq'[2], digits=3))
a<-table.element(a, round(anova.xdf$'Mean Sq'[2], digits=3))
a<-table.element(a, ' ')
a<-table.element(a, ' ')
a<-table.row.end(a)
a<-table.end(a)
table.save(a,file='mytable1.tab')
bitmap(file='regressionplot.png')
plot(Y~ X, data=xdf, xlab=V2, ylab=V1, main='Regression Solution')
if(intercept == TRUE) abline(coef(lmxdf), col='red')
if(intercept == FALSE) abline(0.0, coef(lmxdf), col='red')
dev.off()
library(car)
bitmap(file='residualsQQplot.png')
qqPlot(resid(lmxdf), main='QQplot of Residuals of Fit')
dev.off()
bitmap(file='residualsplot.png')
plot(xdf$X, resid(lmxdf), main='Scatterplot of Residuals of Model Fit')
dev.off()
bitmap(file='cooksDistanceLmplot.png')
plot(lmxdf, which=4)
dev.off()