rh | R Documentation |
A rotation of the H-transform of the array a
by a
matrix x
.
rh(x, a, transpose = FALSE)
x |
A matrix-like object. See Details. |
a |
An d-dimensional array |
transpose |
A logical value. The Default is
|
x
should be matrix-like. This function has been
tested when x
is a matrix
object or a
Matrix
.
Assuming a
is of size c_1 \times c_2 \times
\dots \times c_d
, then x
is of size r \times
c_1
.
A rotated, h-transformed array
Joshua French. Based off code by Luo Xiao (see References).
Currie, I. D., Durban, M. and Eilers, P. H. (2006), Generalized linear array models with applications to multidimensional smoothing. Journal of the Royal Statistical Society: Series B (Statistical Methodology), 68: 259-280. <doi:10.1111/j.1467-9868.2006.00543.x>
Xiao, L. , Li, Y. and Ruppert, D. (2013), Fast bivariate P-splines: the sandwich smoother. J. R. Stat. Soc. B, 75: 577-599. <doi:10.1111/rssb.12007>
dim = c(10:12)
# construct random array
a = array(rnorm(prod(dim)), dim = dim)
# construct random matrix
x = matrix(rnorm(15 * dim[1]), nrow = 15)
rhxa = rh(x, a)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.