Generate random numbers from a t distribution, rescaled to have user-specified population mean and standard deviation.
Arguments
- n
The number of random numbers to generate.
- df
df
forstats::rt()
.- pmean
Population mean.
- psd
Population standard deviation.
Details
First, specify the parameter df
and the desired population
mean and standard deviation. The
random numbers, drawn from the
generalized normal distribution by
stats::rt()
, will then be
rescaled with the desired population
mean and standard.