Generates a set of Student's T distributed values.
r_tdist(df, ..., n = default_n(df), .seed = NULL)
df | vector of degrees of freedom |
---|---|
... | Unused |
n | number of observations to generate. The |
.seed | One of the following:
To extract the random seed from a previously generated set of
values, use |
A numeric vector of length n
#> [1] 2.2140826 1.6408442 -0.3098129 0.3402945 -0.6886386r_tdist(1:10)#> [1] -0.69300596 1.34329219 1.14882681 -0.77407169 0.03398438 0.15930033 #> [7] 0.94094363 -0.44624802 -0.40464933 -0.19402149r_tdist(10, n = 10)#> [1] -1.12826210 0.46427911 -0.70476069 1.46582240 -0.28822105 -0.27637620 #> [7] -0.60889543 -0.86523567 -0.05853521 -0.39711420