Learn R Programming

EMMAgeo (version 0.9.7)

get.l: Generate a vector of weight transformation values from l.min to l.max.

Description

This function generates a sequence of weight transformation values that range from l_min (by default zero) to l_max (by default 95 % of the maximum possible value). It uses the function test.l.max().

Usage

get.l(X, n = 10, max = 0.95, min = 0)

Arguments

X

Numeric matrix, input data set with m samples (rows) and n variables (columns).

n

Numeric scalar, length of the output vector (by default 10).

max

Numeric scalar, fraction of the maximum value (by default 0.95).

min

Numeric scalar, minimum value (by default zero).

Value

Numeric vector of class "EMMAgeo_l", weight transformation values.

See Also

test.l.max

Examples

Run this code
# NOT RUN {
## load example data set
data(example_X)

## infer l-vector
l <- get.l(X = X, 
           n = 5, 
           max = 0.8, 
           min = 0.02)

# }

Run the code above in your browser using DataLab