genej: Auxiliary function: generating basis vectors

View source: R/sweights.R

genejR Documentation

Auxiliary function: generating basis vectors

Description

Auxiliary function to generate standard basis vectors.

Usage

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.


jkcshea/ivmte documentation built on Aug. 31, 2024, 6:44 p.m.