File: careertraj.setup.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 (32 lines) | stat: -rw-r--r-- 867 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
27
28
29
30
31
32
\name{careertraj.setup}
\alias{careertraj.setup}
\title{Setup for Career Trajectory Application}
\description{
 Setups the data matrices for the use of WinBUGS
 in the career trajectory application. 
}
\usage{
careertraj.setup(data)
}
\arguments{
 \item{data}{data matrix for ballplayers with variables Player, Year, Age, G, AB, R, H, X2B, X3B, HR, RBI, BB, SO}
}

\value{
\item{player.names}{vector of player names}
\item{y}{matrix of home runs for players where a row corresponds to the home runs for a player during
all the years of his career}
\item{n}{matrix of AB-SO for all players}
\item{x}{matrix of ages for all players for all years of their careers}
\item{T}{vector of number of seasons for all players}
\item{N}{number of players}
}

\author{Jim Albert}

\examples{
data(sluggerdata)
careertraj.setup(sluggerdata)
}

\keyword{models}