ct | R Documentation |
Density, distribution function, quantile function, and random generation
for the left and/or right censored student-t distribution with df
degrees of freedom.
dct(x, location = 0, scale = 1, df, left = -Inf, right = Inf, log = FALSE) pct(q, location = 0, scale = 1, df, left = -Inf, right = Inf, lower.tail = TRUE, log.p = FALSE) qct(p, location = 0, scale = 1, df, left = -Inf, right = Inf, lower.tail = TRUE, log.p = FALSE) rct(n, location = 0, scale = 1, df, left = -Inf, right = Inf)
x, q |
vector of quantiles. |
p |
vector of probabilities. |
n |
number of observations. If |
location |
location parameter. |
scale |
scale parameter. |
df |
degrees of freedom (> 0, maybe non-integer). |
left |
left censoring point. |
right |
right censoring point. |
log, log.p |
logical; if TRUE, probabilities p are given as log(p). |
lower.tail |
logical; if TRUE (default), probabilities are P[X <= x] otherwise, P[X > x]. |
If location
or scale
are not specified they assume the default values
of 0
and 1
, respectively. left
and right
have the defaults -Inf
and Inf
respectively.
The censored student-t distribution has density f(x):
T((left - μ)/σ) | if x ≤ left |
1 - T((right - μ)/σ) | if x ≥ right |
τ((x - μ)/σ)/σ | if left < x < right |
where T and τ are the cumulative distribution function
and probability density function of the student-t distribution with
df
degrees of freedom respectively, μ is the location of the
distribution, and σ the scale.
dct
gives the density, pct
gives the distribution
function, qct
gives the quantile function, and rct
generates random deviates.
dt
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.