View source: R/PvarBreakTest.R
BridgeT | R Documentation |
Transforms data by Bridge transformation.
BridgeT(x, normalize = TRUE)
x |
x a numeric vector of data values. |
normalize |
|
Let n
denotes the length ox x
.
For each m \in [1,n] bridge transformations BridgeT
is defined as
BridgeT(m, x) = ( ∑^m x_i - m/n ∑^n x_i ).
Meanwhile, the transformation with normalization is
BridgeT(m, x) = ( ∑^m x_i - m/n ∑^n x_i ) / (n var(x))^0.5.
A numeric vector.
PvarBreakTest
, rbridge
x <- rnorm(1000) Bx <- BridgeT(x, FALSE) op <- par(mfrow=c(2,1),mar=c(4,4,2,1)) plot(cumsum(x), type="l") plot(Bx, type="l") par(op)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.