Skip to contents

Vector to centered matrix (RTMB compatible)

Usage

to_centered_matrix(x, R, C)

Arguments

x

A numeric vector of length (R-1) * C.

R

Number of rows.

C

Number of columns.

Value

An R x C matrix where each column sums to zero.