File: robustt.Rd

package info (click to toggle)
r-cran-learnbayes 2.15.1-4
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, forky, sid, trixie
  • size: 1,864 kB
  • sloc: sh: 15; makefile: 2
file content (26 lines) | stat: -rw-r--r-- 719 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
\name{robustt}
\alias{robustt}
\title{Gibbs sampling for a robust regression model}
\description{
 Implements Gibbs sampling for a robust t sampling model with location mu, scale sigma, and degrees of freedom v }
\usage{
robustt(y,v,m)
}
\arguments{
 \item{y}{vector of data values}
  \item{v}{degrees of freedom for t model} 
  \item{m}{the number of cycles of the Gibbs sampler}
}
\value{
\item{mu}{vector of simulated values of mu}
\item{s2}{vector of simulated values of sigma2}
\item{lam}{matrix of simulated draws of lambda, where each row corresponds to a single draw}
}
\author{Jim Albert}

\examples{
data=c(-67,-48,6,8,14,16,23,24,28,29,41,49,67,60,75)
fit=robustt(data,4,1000)
}

\keyword{models}