Function rtnorm determines the output based on the dimension of the lower/upper bounds, so if users pass a vector of means mu or standard deviations sd of length $n$ with lb and ub shorter vectors of length m < n, these exact mean/std. dev parameters are ignored silently.
Function
rtnorm
determines the output based on the dimension of the lower/upper bounds, so if users pass a vector of meansmu
or standard deviationssd
of length $n$ withlb
andub
shorter vectors of length m < n, these exact mean/std. dev parameters are ignored silently.Created on 2021-11-30 by the reprex package (v2.0.1)