arma_reshape: Reshape matrix for blockwise WLS estimation

View source: R/RcppExports.R

arma_reshapeR Documentation

Reshape matrix for blockwise WLS estimation

Description

reshape mm for blockwise multiplication in wls_est

Usage

arma_reshape(mm, sizetheta)

Arguments

mm

a matrix

sizetheta

integer of length(theta) to shrink mm into

Examples

mm <- matrix(c(11,21,31,41,
 12,22,32,42,
 13,23,33,43,
 14,24,34,44),
 ncol = 4)

mm_a <- arma_reshape(mm, 2)

mm_m <- matrix(t(mm), nrow = 2, byrow = TRUE)

JanMarvin/nlsur documentation built on June 24, 2024, 2:58 a.m.