dlst: Defintions for location-scale t distribution

View source: R/utils.R

dlstR Documentation

Defintions for location-scale t distribution

Description

Internal functions for defining the t-distribution in terms of location-scale.

Usage

dlst(x, df = 1, mu = 0, sigma = 1, log = FALSE)

plst(q, df = 1, mu = 0, sigma = 1, log = FALSE)

Arguments

x, q

The data vector

df

Degrees of freedom

mu

The location parameter

sigma

The scale parameter

log

Indicate whether probabilities are return as log

Value

Numeric values representing the density and cumulative probabilitiy values of the location-scale t distribution

Functions

  • dlst: Probability Density Function

  • plst: Cumulative distribution function

Examples

    val <- rnorm(10)
    dlst(val, df = 1, mu = 0, sigma = 1)
    val <- rnorm(10)
    plst(q = val, df = 1, mu = 0, sigma = 1)

qpmnguyen/teaR documentation built on April 4, 2022, 7:26 p.m.