simplex: simplex takes a unit vector of length K and converts to...

View source: R/Simplex.R

simplexR Documentation

simplex takes a unit vector of length K and converts to unconstrained K - 1 vector

Description

simplex takes a unit vector of length K and converts to unconstrained K - 1 vector

Usage

simplex(xk, sum_to_one = TRUE)

Arguments

xk

vector of length K - 1 takes unconstrained values

sum_to_one

whether to rescale xk so it sums to one

Value

vector of length K - 1 unconstrained values


Craig44/stockassessmenthelper documentation built on April 14, 2023, 10:57 a.m.