ePow: Convert vector x into a matrix X_{ij} = {x_i}^j

Description Usage Arguments Value Examples

View source: R/expandFunctions.R

Description

Convert vector x into a matrix X_{ij} = {x_i}^j

Usage

1
ePow(x, colParamVector)

Arguments

x

Data vector.

colParamVector

Vector of column powers.

Value

A matrix X of size length(x) X length(colParamVector)

X_{ij} = {x_i}^j

Examples

1
2
x <- 1:6
ePow(x,0:2)

expandFunctions documentation built on May 2, 2019, 9:15 a.m.