genej: Auxiliary function: generating basis vectors

Description Usage Arguments Value

View source: R/sweights.R

Description

Auxiliary function to generate standard basis vectors.

Usage

1
genej(pos, length)

Arguments

pos

The position of the non-zero entry/dimension the basis vector corresponds to

length

Number of dimensions in total/length of vector.

Value

Vector containing 1 in a single position, and 0 elsewhere.


ivmte documentation built on Sept. 17, 2021, 5:06 p.m.