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, 21 Dec 2011 17:01:26 -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/2011/Dec/21/t1324504924fd4w9cxca0ghvkb.htm/, Retrieved Tue, 07 May 2024 19:41:56 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=159078, Retrieved Tue, 07 May 2024 19:41:56 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact116
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-     [Univariate Data Series] [] [2008-12-08 19:22:39] [d2d412c7f4d35ffbf5ee5ee89db327d4]
- RMP   [Spectral Analysis] [] [2011-12-06 19:48:28] [b98453cac15ba1066b407e146608df68]
- R PD    [Spectral Analysis] [] [2011-12-14 15:31:08] [c53df38315e3cbde2dbe0de809195ef2]
- RMP       [(Partial) Autocorrelation Function] [] [2011-12-14 15:45:27] [c53df38315e3cbde2dbe0de809195ef2]
- RMP         [ARIMA Backward Selection] [] [2011-12-14 16:01:54] [c53df38315e3cbde2dbe0de809195ef2]
- RMPD          [Box-Cox Linearity Plot] [] [2011-12-14 21:42:54] [c53df38315e3cbde2dbe0de809195ef2]
-    D              [Box-Cox Linearity Plot] [] [2011-12-21 22:01:26] [204816f6f70a8d342ddc2b9d4f4a80d3] [Current]
Feedback Forum

Post a new message
Dataseries X:
1.579
2.146
2.462
3.695
4.831
5.134
6.250
5.760
6.249
2.917
1.741
2.359
1.511
2.059
2.635
2.867
4.403
5.720
4.502
5.749
5.627
2.846
1.762
2.429
1.169
2.154
2.249
2.687
4.359
5.382
4.459
6.398
4.596
3.024
1.887
2.070
1.351
2.218
2.461
3.028
4.784
4.975
4.607
6.249
4.809
3.157
1.910
2.228
1.594
2.467
2.222
3.607
4.685
4.962
5.770
5.480
5.000
3.228
1.993
2.288
1.580
2.111
2.192
3.601
4.665
4.876
5.813
5.589
5.331
3.075
2.002
2.306
1.507
1.992
2.487
3.490
4.647
5.594
5.611
5.788
6.204
3.013
1.931
2.549
1.504
2.090
2.702
2.939
4.500
6.208
6.415
5.657
5.964
3.163
1.997
2.422
1.376
2.202
2.683
3.303
5.202
5.231
4.880
7.998
4.977
3.531
2.025
2.205
1.442
2.238
2.179
3.218
5.139
4.990
4.914
6.084
5.672
3.548
1.793
2.086
1.262
1.743
1.964
3.258
4.966
4.944
5.907
5.561
5.321
3.582
1.757
1.894
Dataseries Y:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132




Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time1 seconds
R Server'Herman Ole Andreas Wold' @ wold.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 & 1 seconds \tabularnewline
R Server & 'Herman Ole Andreas Wold' @ wold.wessa.net \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=159078&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]'Herman Ole Andreas Wold' @ wold.wessa.net[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=159078&T=0

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=159078&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'Herman Ole Andreas Wold' @ wold.wessa.net







Box-Cox Linearity Plot
# observations x132
maximum correlation0.0483636049701242
optimal lambda(x)2
Residual SD (orginial)38.218781707536
Residual SD (transformed)38.2044236573203

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

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

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=159078&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 x132
maximum correlation0.0483636049701242
optimal lambda(x)2
Residual SD (orginial)38.218781707536
Residual SD (transformed)38.2044236573203



Parameters (Session):
Parameters (R input):
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')