curveLambda: curveLambda

View source: R/getMaxLambda.R

curveLambdaR Documentation

curveLambda

Description

generates lambda values between 0 and lambdaMax using the function described here: https://math.stackexchange.com/questions/384613/exponential-function-with-values-between-0-and-1-for-x-values-between-0-and-1. The function is identical to the one implemented in the regCtsem package.

Usage

curveLambda(maxLambda, lambdasAutoCurve, lambdasAutoLength)

Arguments

maxLambda

maximal lambda value

lambdasAutoCurve

controls the curve. A value close to 1 will result in a linear increase, larger values in lambdas more concentrated around 0

lambdasAutoLength

number of lambda values to generate

Value

numeric vector

Examples

library(lessSEM)
plot(curveLambda(maxLambda = 10, lambdasAutoCurve = 1, lambdasAutoLength = 100))
plot(curveLambda(maxLambda = 10, lambdasAutoCurve = 5, lambdasAutoLength = 100))
plot(curveLambda(maxLambda = 10, lambdasAutoCurve = 100, lambdasAutoLength = 100))

lessSEM documentation built on May 29, 2024, 7:10 a.m.