Free Statistics

of Irreproducible Research!

Author's title

Author*Unverified author*
R Software Modulerwasp_Simple Regression Y ~ X.wasp
Title produced by softwareSimple Linear Regression
Date of computationSat, 23 Mar 2024 11:52:52 +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/2024/Mar/23/t1711192072ov7fuh145a9jfc3.htm/, Retrieved Tue, 08 Sep 2026 20:06:40 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=320031, Retrieved Tue, 08 Sep 2026 20:06:40 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact327
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-       [Simple Linear Regression] [] [2024-03-23 10:52:52] [d41d8cd98f00b204e9800998ecf8427e] [Current]
Feedback Forum

Post a new message
Dataseries X:
DER	FIRM VALUE
0.01	₱20.329.047.188
1.07	₱16.484.433.791
1.01	₱55.540.104.000
0.54	₱4.213.192.000
0.02	₱1.218.603.046
1.5	₱11.627.684.838
1.22	₱697.602.230
0.79	₱2.889.449.116
0.27	₱14.865.354.008
1.23	₱969.397.446
1.84	₱21.106.734.000
0.09	₱2.951.827.785
0.43	₱6.026.803.287
0.03	₱2.971.538.079
0.41	₱76.335.521.300
0.11	₱2.992.456.161
0.03	₱1.936.190.006
0.61	₱24.468.501.617
0.24	₱22.703.628.000
-12.15	₱2.752.739.122
7.96	₱298.053.817.000
7.59	₱3.375.256.000.000
1.64	₱3.064.081.006
9.19	₱164.021.603.941
6.92	₱2.281.465.482.000
8.87	₱982.055.282.000
6.49	₱22.601.193.975
6.79	₱5.169.094.618
6.36	₱368.870.575.000
6.97	₱6.289.396.997
0.01	₱337.196.332
1.27	₱1.034.138.439
6.37	₱2.304.057.610.000
1.76	₱10.604.687.000
7.63	₱112.368.874.548
7.08	₱96.350.071.000
6.89	₱1.094.797.297.000
5.36	₱205.369.762.301
0.25	₱13.238.850.254
5.26	₱260.507.471.000
6.62	₱690.752.128.000
4.29	₱617.202.799.000
6.37	₱747.953.240.000
0.05	₱1.666.406.405
0.2	 ₱4.570.769.918 
0.004	 ₱2.855.929.538 
1.59	 ₱1.293.541.725.000 
1.72	 ₱585.616.467.000 
1.26	 ₱405.874.076.534 
0.12	 ₱7.352.095.454 
0.73	 ₱6.098.746.740 
0.05	 ₱455.668.197 
0.62	 ₱59.061.675.000 
1.02	 ₱159.422.968.000 
3.57	 ₱496.755.041.000 
0.02	 ₱775.182.251 
0.01	 ₱273.353.728 
1	 ₱301.631.500.000 
1.37	 ₱29.934.085.775 
1.45	 ₱1.048.510.353.198 
0.01	 ₱227.820.115 
0.01	 ₱2.252.579.342 
0.98	 ₱161.400.356.000 
4.3	 ₱935.219.103.000 
84.18	 ₱3.495.772.179 
0.75	 ₱874.506.500 
0.09	 ₱1.543.402.000 
0.13	 ₱2.550.963.356 
1.17	 ₱1.845.052.240.000 
1.92	 ₱1.215.287.590.000 
0.1	 ₱276.338.907 
1.95	 ₱1.037.068.000.000 
0.38	 ₱1.164.368.376 
1.24	 ₱492.802.611 
1.94	 ₱20.832.784.139 
3.3	 ₱34.437.425.940 
1.77	 ₱1.046.751.055.000 
0.63	 ₱28.593.226.000 
0.16	 ₱1.117.860.296 
0.14	 ₱2.563.438.607 
0.07	 ₱32.337.626.475 
0.53	 ₱4.223.498.299 
0.26	 ₱4.023.043.854 
0.08	 ₱1.988.978.297 
2.23	 ₱41.602.851.195 
1.51	 ₱34.623.820.000 
2.15	 ₱14.300.854.533 
1.46	 ₱103.144.897.039 
0.28	 ₱43.690.434.422 
0.14	 ₱24.923.475.893 
0.56	 ₱61.220.175.326 
3.94	 ₱1.701.305.630 
3.94	 ₱58.591.063.289 
1.43	 ₱127.092.422.000 
0.46	 ₱23.878.002.338 
1.12	 ₱84.655.909.076 
1.7	 ₱299.219.912.290 
0.12	 ₱23.622.145.214 
0.03	 ₱968.999.972 
0.12	 ₱1.139.246.908 
0.77	 ₱253.148.855.840 
1.28	 ₱6.366.744.992 
0.04	 ₱49.445.915 
0.52	 ₱1.155.548.628 
0.82	 ₱3.769.648.028 
10.94	 ₱208.586.994.638 
0.54	 ₱3.533.883.776 
1.49	 ₱43.288.124.000 
0.52	 ₱32.850.368.590 
1.59	 ₱43.374.233.736 
1.32	 ₱1.492.828.883.000 
0.19	 ₱388.613.990 
1.79	 ₱82.822.938.270 
1.7	 ₱20.396.783.402 
1.69	 ₱230.017.972.470 
2.42	 ₱45.313.200.000 
2.76	 ₱19.498.051.666 
0.75	 ₱3.169.843.673 
0.13	 ₱36.825.012.104 
0.55	 ₱37.633.731.000 
0.64	 ₱30.155.906.000 
0.21	 ₱646.060.817 
2.45	 ₱146.092.206.486 
2.94	 ₱37.222.238.984 
3.37	 ₱131.758.807.466 
1.04	 ₱128.121.390.353 
1.86	 ₱3.003.736.337 
13.85	 ₱93.344.088.164 
3.2	 ₱6.353.143.975 
0.34	 ₱1.073.599.933 
3.1	 ₱508.269.253.000 
0.86	 ₱28.004.837.586 
21.73	 ₱19.997.015.291 
0.41	 ₱663.477.982 
0.63	 ₱40.930.961.727 
0.07	 ₱1.141.967.693 
0.24	 ₱5.741.508.800 
0.02	 ₱9.270.486.000 
7.57	 ₱640.208.908 
4.27	 ₱29.517.448.937 
0.28	 ₱1.860.727.656 
5.99	 ₱2.889.388.226 
1.19	 ₱17.237.112.769 
0.73	 ₱4.066.426.049 
0.79	 ₱5.633.238.844 
3.7	 ₱6.851.721.806 
1.5	 ₱15.724.457.685 
0.27	 ₱8.387.902.458 
0.02	-₱599.379.000 
0.92	 ₱148.025.395.861 
2.21	 ₱5.038.229.365 
0.02	 ₱1.212.786.338 
2.3	 ₱30.442.021.360 
0.07	 ₱13.064.720.390 
0.82	 ₱12.916.286.000 
0.44	 ₱5.398.035.409 
0.82	 ₱144.301.530.168 
0.38	 ₱10.835.761.922 
3.05	 ₱107.874.714.903 
1.17	 ₱11.864.860.190 
0.07	 ₱1.313.653.775 
3.81	 ₱705.518.000.000 
4.08	 ₱5.864.780.649 
2.82	 ₱4.215.273.511 
0.84	 ₱80.337.959.263 
0.62	 ₱5.601.901.716 
0.36	 ₱132.691.814.000 
1.96	 ₱36.402.586.358 
0.54	 ₱9.623.711.550 
0.15	 ₱12.929.267.000 
0.05	 ₱1.314.778.000 
0.13	 ₱1.378.422.943 
0.49	 ₱34.269.688.000 
0.74	 ₱11.806.404.000 
0.42	 ₱1.698.077.709 
0.69	 ₱75.601.023.760 
0.28	 ₱1.311.668.690 
0.43	 ₱60.488.973.574 
-1.1	 ₱1.523.789.630 
3.2	 ₱27.018.239.455 
0.82	 ₱207.574.296.779 
0.85	 ₱13.737.709.340 
1.1	 ₱503.366.400.000 
1.04	 ₱183.795.500.000 
0.25	 ₱3.582.257.085 
-3.13	 ₱2.641.215.599 
0.04	 ₱4.525.586.217 
0.95	 ₱20.485.886.616 
2.1	 ₱337.639.819.000 
1.27	 ₱4.586.157.694 
0.35	 ₱5.690.967.000 
0.46	 ₱6.903.591.733 
0.001	 ₱784.507.835 
0.31	 ₱9.561.556.080 
3.83	 ₱587.737.200.000 
2.96	 ₱1.678.607.422 
2.18	 ₱361.985.516.000 
0.15	 ₱2.364.572.943 
1.6	 ₱115.023.356.360 
2.96	 ₱69.581.547.291 
3.28	 ₱257.427.658.000 
0.71	 ₱6.434.013.746 
1.86	 ₱15.754.138.000 
2.9	 ₱73.570.239.713 
0.47	 ₱12.911.848.071 
0.62	 ₱7.567.115.000 
0.51	 ₱19.992.496.000 
0.69	 ₱79.448.014.173 
0.75	 ₱381.979.000 
2.84	 ₱314.182.572.912 
2.66	 ₱89.944.523.000 
0.79	 ₱108.773.665 
72.65	 ₱5.151.992.487 
1.19	 ₱2.694.554.613 
0.8	 ₱395.685.875.871 
1.45	 ₱4.802.846.087 
0.38	 ₱15.844.966.724 




Summary of computational transaction
Raw Input view raw input (R code)
Raw Outputview raw output of R engine
Computing time0 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 time0 seconds \tabularnewline
R ServerBig Analytics Cloud Computing Center \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=320031&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]0 seconds[/C][/ROW] [ROW]R Server[/C]Big Analytics Cloud Computing Center[/C][/ROW] [/TABLE] Source: https://freestatistics.org/blog/index.php?pk=320031&T=0

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=320031&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 time0 seconds
R ServerBig Analytics Cloud Computing Center



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):
par3 <- 'TRUE'
par2 <- ''
par1 <- ''
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()