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 computationWed, 12 Dec 2012 12:31:32 -0500
Cite this page as followsStatistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?v=date/2012/Dec/12/t1355333519d51itao7rdps2cr.htm/, Retrieved Sun, 28 Apr 2024 23:58:13 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=199013, Retrieved Sun, 28 Apr 2024 23:58:13 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact75
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-       [Simple Linear Regression] [paper deel 3 line...] [2012-12-12 17:31:32] [4e0a07d67ff6ab1ee99ce2372e43edac] [Current]
- RMPD    [Multiple Regression] [paper deel drie m...] [2012-12-18 22:02:53] [d78b9afa8f7e4cb23f8a65a6f0918ac0]
Feedback Forum

Post a new message
Dataseries X:
1418	210907
869	120982
1530	176508
2172	179321
901	123185
463	52746
3201	385534
371	33170
1192	101645
1583	149061
1439	165446
1764	237213
1495	173326
1373	133131
2187	258873
1491	180083
4041	324799
1706	230964
2152	236785
1036	135473
1882	202925
1929	215147
2242	344297
1220	153935
1289	132943
2515	174724
2147	174415
2352	225548
1638	223632
1222	124817
1812	221698
1677	210767
1579	170266
1731	260561
807	84853
2452	294424
829	101011
1940	215641
2662	325107
186	7176
1499	167542
865	106408
1793	96560
2527	265769
2747	269651
1324	149112
2702	175824
1383	152871
1179	111665
2099	116408
4308	362301
918	78800
1831	183167
3373	277965
1713	150629
1438	168809
496	24188
2253	329267
744	65029
1161	101097
2352	218946
2144	244052
4691	341570
1112	103597
2694	233328
1973	256462
1769	206161
3148	311473
2474	235800
2084	177939
1954	207176
1226	196553
1389	174184
1496	143246
2269	187559
1833	187681
1268	119016
1943	182192
893	73566
1762	194979
1403	167488
1425	143756
1857	275541
1840	243199
1502	182999
1441	135649
1420	152299
1416	120221
2970	346485
1317	145790
1644	193339
870	80953
1654	122774
1054	130585
937	112611
3004	286468
2008	241066
2547	148446
1885	204713
1626	182079
1468	140344
2445	220516
1964	243060
1381	162765
1369	182613
1659	232138
2888	265318
1290	85574
2845	310839
1982	225060
1904	232317
1391	144966
602	43287
1743	155754
1559	164709
2014	201940
2143	235454
2146	220801
874	99466
1590	92661
1590	133328
1210	61361
2072	125930
1281	100750
1401	224549
834	82316
1105	102010
1272	101523
1944	243511
391	22938
761	41566
1605	152474
530	61857
1988	99923
1386	132487
2395	317394
387	21054
1742	209641
620	22648
449	31414
800	46698
1684	131698
1050	91735
2699	244749
1606	184510
1502	79863
1204	128423
1138	97839
568	38214
1459	151101
2158	272458
1111	172494
1421	108043
2833	328107
1955	250579
2922	351067
1002	158015
1060	98866
956	85439
2186	229242
3604	351619
1035	84207
1417	120445
3261	324598
1587	131069
1424	204271
1701	165543
1249	141722
946	116048
1926	250047
3352	299775
1641	195838
2035	173260
2312	254488
1369	104389
1577	136084
2201	199476
961	92499
1900	224330
1254	135781
1335	74408
1597	81240
207	14688
1645	181633
2429	271856
151	7199
474	46660
141	17547
1639	133368
872	95227
1318	152601
1018	98146
1383	79619
1314	59194
1335	139942
1403	118612
910	72880
616	65475
1407	99643
771	71965
766	77272
473	49289
1376	135131
1232	108446
1521	89746
572	44296
1059	77648
1544	181528
1230	134019
1206	124064
1205	92630
1255	121848
613	52915
721	81872
1109	58981
740	53515
1126	60812
728	56375
689	65490
592	80949
995	76302
1613	104011
2048	98104
705	67989
301	30989
1803	135458
799	73504
861	63123
1186	61254
1451	74914
628	31774
1161	81437
1463	87186
742	50090
979	65745
675	56653
1241	158399
676	46455
1049	73624
620	38395
1081	91899
1688	139526
736	52164
617	51567
812	70551
1051	84856
1656	102538
705	86678
945	85709
554	34662
1597	150580
982	99611
222	19349
1212	99373
1143	86230
435	30837
532	31706
882	89806
608	62088
459	40151
578	27634
826	76990
509	37460
717	54157
637	49862
857	84337
830	64175
652	59382
707	119308
954	76702
1461	103425
672	70344
778	43410
1141	104838
680	62215
1090	69304
616	53117
285	19764
1145	86680
733	84105
888	77945
849	89113
1182	91005
528	40248
642	64187
947	50857
819	56613
757	62792
894	72535




Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time4 seconds
R Server'Sir Ronald Aylmer Fisher' @ fisher.wessa.net

\begin{tabular}{lllllllll}
\hline
Summary of computational transaction \tabularnewline
Raw Input & view raw input (R code)  \tabularnewline
Raw Output & view raw output of R engine  \tabularnewline
Computing time & 4 seconds \tabularnewline
R Server & 'Sir Ronald Aylmer Fisher' @ fisher.wessa.net \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=199013&T=0

[TABLE]
[ROW][C]Summary of computational transaction[/C][/ROW]
[ROW][C]Raw Input[/C][C]view raw input (R code) [/C][/ROW]
[ROW][C]Raw Output[/C][C]view raw output of R engine [/C][/ROW]
[ROW][C]Computing time[/C][C]4 seconds[/C][/ROW]
[ROW][C]R Server[/C][C]'Sir Ronald Aylmer Fisher' @ fisher.wessa.net[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=199013&T=0

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=199013&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 Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time4 seconds
R Server'Sir Ronald Aylmer Fisher' @ fisher.wessa.net







Linear Regression Model
Y ~ X
coefficients:
EstimateStd. Errort valuePr(>|t|)
(Intercept)314.43838.2038.2310
X0.008033.5790
- - -
Residual Std. Err. 332.189 on 287 df
Multiple R-sq. 0.797
Adjusted R-sq. 0.796

\begin{tabular}{lllllllll}
\hline
Linear Regression Model \tabularnewline
Y ~ X \tabularnewline
coefficients: &   \tabularnewline
  & Estimate & Std. Error & t value & Pr(>|t|) \tabularnewline
(Intercept) & 314.438 & 38.203 & 8.231 & 0 \tabularnewline
X & 0.008 & 0 & 33.579 & 0 \tabularnewline
- - -  &   \tabularnewline
Residual Std. Err.  & 332.189  on  287 df \tabularnewline
Multiple R-sq.  & 0.797 \tabularnewline
Adjusted R-sq.  & 0.796 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=199013&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]314.438[/C][C]38.203[/C][C]8.231[/C][C]0[/C][/ROW]
[C]X[/C][C]0.008[/C][C]0[/C][C]33.579[/C][C]0[/C][/ROW]
[ROW][C]- - - [/C][C] [/C][/ROW]
[ROW][C]Residual Std. Err. [/C][C]332.189  on  287 df[/C][/ROW]
[ROW][C]Multiple R-sq. [/C][C]0.797[/C][/ROW]
[ROW][C]Adjusted R-sq. [/C][C]0.796[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=199013&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=199013&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)314.43838.2038.2310
X0.008033.5790
- - -
Residual Std. Err. 332.189 on 287 df
Multiple R-sq. 0.797
Adjusted R-sq. 0.796







ANOVA Statistics
DfSum SqMean SqF valuePr(>F)
time1124421365.882124421365.8821127.5220
Residuals28731670266.132110349.359

\begin{tabular}{lllllllll}
\hline
ANOVA Statistics \tabularnewline
  & Df & Sum Sq & Mean Sq & F value & Pr(>F) \tabularnewline
time & 1 & 124421365.882 & 124421365.882 & 1127.522 & 0 \tabularnewline
Residuals & 287 & 31670266.132 & 110349.359 &   &   \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=199013&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]time[/C][C]1[/C][C]124421365.882[/C][C]124421365.882[/C][C]1127.522[/C][C]0[/C][/ROW]
[ROW][C]Residuals[/C][C]287[/C][C]31670266.132[/C][C]110349.359[/C][C] [/C][C] [/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=199013&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=199013&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)
time1124421365.882124421365.8821127.5220
Residuals28731670266.132110349.359



Parameters (Session):
par1 = 1 ; par2 = 2 ; par3 = TRUE ;
Parameters (R input):
par1 = 1 ; par2 = 2 ; par3 = TRUE ;
R code (references can be found in the software module):
cat1 <- as.numeric(par1)
cat2<- as.numeric(par2)
intercept<-as.logical(par3)
x <- t(x)
xdf<-data.frame(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) )
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, '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')
qq.plot(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.lm(lmxdf, which=4)
dev.off()