freeze: Freeze and thaw matrices...

Description Usage Details Examples

Description

Freeze and thaw matrices

Usage

1
freeze(input, frozen)

Details

Some terminology: * frozen variables: the variables that have fixed values * warm variables: the remaining variables that vary freely

A frozen matrix specifies which variables to fix in a projection matrix. Warm variables should be missing (NA) while frozen variables should be set to their fixed values.

Examples

1
2
3
4
5
6
7
frozen <- matrix(NA, nrow = 4, ncol = 2)
frozen[3, ] <- .5

input <- basis_random(4, 2)
freeze(input, frozen)
thaw(input, frozen)
freeze(basis_random(4, 2), frozen)

tourr documentation built on May 2, 2019, 5:28 p.m.

Related to freeze in tourr...