# Scaled and shifted t distribution.

### Description

Student's t distribution for 'df' degrees of freedom, shifted by 'mean' and scaled by 'sd'.

### Usage

1 2 3 4 |

### Arguments

`x,q` |
vector of quantiles. |

`p` |
vector of probabilities. |

`n` |
number of observations. If |

`df` |
degrees of freedom (> 0, maybe non-integer). |

`mean` |
mean value for the shifted, scaled distribution. |

`sd` |
Scale factor for the shifted, scaled distribution. |

`ncp` |
non-centrality parameter delta; currently except for |

`lower.tail` |
logical; if TRUE (default), probabilities are P[X <= x]; otherwise, P[X > x]. |

`log, log.p` |
logical; if TRUE, probabilities p are given as log(p). |

### Details

These are wrappers for the corresponding t distribution functions in package `stats`

.

The scaled, shifted t distribution has mean `mean`

and variance `sd^2 * df/(df-2)`

The scaled, shifted t distribution is used for Monte Carlo evaluation when a value x has
been assigned a standard uncertainty u associated with with df degrees of freedom;
the corresponding distribution function for that is then `t.scaled`

with
`mean=x`

, `sd=u`

and `df=df`

.

### Value

`dt.scaled`

gives the density, `pt.scaled`

gives the distribution function,
`qt.scaled`

gives the quantile function, and `rt.scaled`

generates random deviates.

Invalid arguments will result in return value `NaN`

, with a
warning.

### Author(s)

S. L. R. Ellison s.ellison@lgc.co.uk

### See Also

`TDist`

### Examples

1 2 3 4 5 6 7 8 |

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker. Vote for new features on Trello.