Free Statistics

of Irreproducible Research!

Author's title

Author*The author of this computation has been verified*
R Software Modulerwasp_boxcoxlin.wasp
Title produced by softwareBox-Cox Linearity Plot
Date of computationWed, 11 Nov 2009 03:22:53 -0700
Cite this page as followsStatistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?v=date/2009/Nov/11/t12579350970nv7lqw473uh79v.htm/, Retrieved Wed, 24 Apr 2024 21:36:07 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=55463, Retrieved Wed, 24 Apr 2024 21:36:07 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact189
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-     [Box-Cox Linearity Plot] [3/11/2009] [2009-11-02 21:47:57] [b98453cac15ba1066b407e146608df68]
-    D  [Box-Cox Linearity Plot] [WS6 box cox] [2009-11-06 12:23:28] [8b1aef4e7013bd33fbc2a5833375c5f5]
-           [Box-Cox Linearity Plot] [] [2009-11-11 10:22:53] [2a6f24d4847085573f343c759dfbabef] [Current]
Feedback Forum

Post a new message
Dataseries X:
100.00
100.00
97.56
95.12
92.68
92.68
97.56
107.32
112.20
112.20
112.20
114.63
117.07
117.07
114.63
114.63
114.63
112.20
121.95
131.71
134.15
136.59
136.59
141.46
146.34
148.78
148.78
146.34
146.34
148.78
158.54
173.17
180.49
180.49
182.93
185.37
190.24
190.24
187.80
185.37
182.93
178.05
185.37
195.12
195.12
192.68
190.24
187.80
190.24
187.80
182.93
178.05
173.17
170.73
178.05
190.24
192.68
192.68
190.24
190.24
192.68
190.24
185.37
180.49
175.61
168.29
173.17
182.93
185.37
180.49
178.05
175.61
178.05
175.61
173.17
170.73
168.29
165.85
175.61
185.37
187.80
185.37
182.93
182.93
185.37
185.37
185.37
182.93
178.05
175.61
180.49
195.12
200.00
195.12
187.80
187.80
190.24
190.24
187.80
182.93
178.05
173.17
173.17
175.61
165.85
160.98
156.10
156.10
158.54
153.66
143.90
134.15
126.83
119.51
131.71
141.46
139.02
136.59
134.15
131.71
131.71
131.71
134.15
141.46
139.02
131.71
136.59
141.46
151.22
165.85
163.41
163.41
156.10
153.66
153.66
156.10
153.66
146.34
153.66
153.66
160.98
182.93
190.24
192.68
190.24
185.37
182.93
185.37
182.93
178.05
185.37
182.93
185.37
192.68
192.68
197.56
200.00
195.12
182.93
165.85
158.54
160.98
185.37
195.12
197.56
187.80
182.93
185.37
190.24
190.24
190.24
182.93
182.93
173.17
182.93
182.93
185.37
187.80
187.80
192.68
197.56
200.00
200.00
200.00
192.68
178.05
168.29
160.98
163.41
168.29
170.73
173.17
175.61
173.17
168.29
170.73
165.85
156.10
163.41
160.98
156.10
153.66
151.22
158.54
165.85
165.85
156.10
148.78
141.46
148.78
175.61
178.05
168.29
148.78
141.46
151.22
173.17
187.80
192.68
187.80
180.49
182.93
195.12
197.56
Dataseries Y:
100.00
100.78
101.24
102.35
102.41
102.67
102.54
102.74
103.07
103.39
103.72
103.91
104.37
104.89
105.61
106.00
106.13
106.20
106.26
106.33
106.98
107.44
107.50
107.57
107.63
108.15
108.35
109.07
109.39
109.78
109.98
110.18
110.31
110.57
110.63
110.70
110.76
111.15
111.48
112.13
112.13
112.20
112.20
112.46
112.85
113.31
113.37
113.37
113.44
113.89
114.16
114.74
114.81
114.22
114.55
114.74
115.26
114.87
114.87
114.94
115.00
115.98
116.44
117.03
117.09
117.16
117.22
117.22
117.29
117.35
117.55
117.68
117.68
118.26
118.66
119.05
119.18
119.44
119.77
119.83
119.90
119.96
120.09
120.29
120.35
121.27
121.72
122.37
122.50
122.57
122.64
122.83
122.90
122.96
122.96
123.03
123.03
123.55
123.94
125.18
125.57
125.90
126.22
126.48
126.68
127.14
127.14
127.14
127.14
127.53
127.85
127.98
127.98
127.98
127.98
128.51
128.96
129.16
129.29
129.48
129.55
130.14
130.46
131.31
131.90
132.35
132.75
132.75
133.07
133.14
133.27
133.40
133.59
133.79
134.18
134.70
134.96
135.09
135.55
135.68
136.01
136.07
136.33
136.40
136.79
136.86
136.92
136.99
137.51
137.90
138.10
138.29
138.42
138.55
138.88
139.20
139.40
139.60
139.79
140.12
140.25
140.83
141.16
141.49
141.68
141.88
142.14
142.27
142.60
142.79
143.05
143.77
144.10
144.16
144.68
144.81
144.94
145.14
145.40
145.53
145.73
146.12
146.84
147.10
147.36
147.62
147.75
148.08
148.27
148.60
148.79
148.99
149.05
149.25
149.38
149.45
149.58
149.77
149.97
150.03
150.16
150.55
150.68
151.14
151.27
151.99
153.36
153.95
154.53
154.66
154.92
155.38
155.84
155.97
156.56
156.69
156.88
157.01
157.27
157.47
157.99
158.45
158.64
159.10




Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time1 seconds
R Server'Gwilym Jenkins' @ 72.249.127.135

\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 & 1 seconds \tabularnewline
R Server & 'Gwilym Jenkins' @ 72.249.127.135 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=55463&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]1 seconds[/C][/ROW]
[ROW][C]R Server[/C][C]'Gwilym Jenkins' @ 72.249.127.135[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=55463&T=0

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=55463&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 time1 seconds
R Server'Gwilym Jenkins' @ 72.249.127.135







Box-Cox Linearity Plot
# observations x224
maximum correlation0.414276141123364
optimal lambda(x)-2
Residual SD (orginial)15.2722739117906
Residual SD (transformed)14.7734991546819

\begin{tabular}{lllllllll}
\hline
Box-Cox Linearity Plot \tabularnewline
# observations x & 224 \tabularnewline
maximum correlation & 0.414276141123364 \tabularnewline
optimal lambda(x) & -2 \tabularnewline
Residual SD (orginial) & 15.2722739117906 \tabularnewline
Residual SD (transformed) & 14.7734991546819 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=55463&T=1

[TABLE]
[ROW][C]Box-Cox Linearity Plot[/C][/ROW]
[ROW][C]# observations x[/C][C]224[/C][/ROW]
[ROW][C]maximum correlation[/C][C]0.414276141123364[/C][/ROW]
[ROW][C]optimal lambda(x)[/C][C]-2[/C][/ROW]
[ROW][C]Residual SD (orginial)[/C][C]15.2722739117906[/C][/ROW]
[ROW][C]Residual SD (transformed)[/C][C]14.7734991546819[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=55463&T=1

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

As an alternative you can also use a QR Code:  

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

Box-Cox Linearity Plot
# observations x224
maximum correlation0.414276141123364
optimal lambda(x)-2
Residual SD (orginial)15.2722739117906
Residual SD (transformed)14.7734991546819



Parameters (Session):
Parameters (R input):
par1 = ; par2 = ; par3 = ; par4 = ; par5 = ; par6 = ; par7 = ; par8 = ; par9 = ; par10 = ; par11 = ; par12 = ; par13 = ; par14 = ; par15 = ; par16 = ; par17 = ; par18 = ; par19 = ; par20 = ;
R code (references can be found in the software module):
n <- length(x)
c <- array(NA,dim=c(401))
l <- array(NA,dim=c(401))
mx <- 0
mxli <- -999
for (i in 1:401)
{
l[i] <- (i-201)/100
if (l[i] != 0)
{
x1 <- (x^l[i] - 1) / l[i]
} else {
x1 <- log(x)
}
c[i] <- cor(x1,y)
if (mx < abs(c[i]))
{
mx <- abs(c[i])
mxli <- l[i]
}
}
c
mx
mxli
if (mxli != 0)
{
x1 <- (x^mxli - 1) / mxli
} else {
x1 <- log(x)
}
r<-lm(y~x)
se <- sqrt(var(r$residuals))
r1 <- lm(y~x1)
se1 <- sqrt(var(r1$residuals))
bitmap(file='test1.png')
plot(l,c,main='Box-Cox Linearity Plot',xlab='Lambda',ylab='correlation')
grid()
dev.off()
bitmap(file='test2.png')
plot(x,y,main='Linear Fit of Original Data',xlab='x',ylab='y')
abline(r)
grid()
mtext(paste('Residual Standard Deviation = ',se))
dev.off()
bitmap(file='test3.png')
plot(x1,y,main='Linear Fit of Transformed Data',xlab='x',ylab='y')
abline(r1)
grid()
mtext(paste('Residual Standard Deviation = ',se1))
dev.off()
load(file='createtable')
a<-table.start()
a<-table.row.start(a)
a<-table.element(a,'Box-Cox Linearity Plot',2,TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'# observations x',header=TRUE)
a<-table.element(a,n)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'maximum correlation',header=TRUE)
a<-table.element(a,mx)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'optimal lambda(x)',header=TRUE)
a<-table.element(a,mxli)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'Residual SD (orginial)',header=TRUE)
a<-table.element(a,se)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'Residual SD (transformed)',header=TRUE)
a<-table.element(a,se1)
a<-table.row.end(a)
a<-table.end(a)
table.save(a,file='mytable.tab')