Multiplies a vector or matrix with a Pmat object

Pmat_product(x, P, type = NULL)

Arguments

x

A a vector or matrix

P

A Pmat object

type

A character string indicating the type of transformation. This argument need to be specified if P is not of class Pmat.

Value

A matrix n x np containing the permutated/signflipped vectors.

See also

Other pmat: Pmat(), as.Pmat()