Description Usage Arguments Value Author(s) Examples

View source: R/careertraj.setup.R

Setups the data matrices for the use of WinBUGS in the career trajectory application.

1 |

`data` |
data matrix for ballplayers with variables Player, Year, Age, G, AB, R, H, X2B, X3B, HR, RBI, BB, SO |

`player.names` |
vector of player names |

`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 |

`n` |
matrix of AB-SO for all players |

`x` |
matrix of ages for all players for all years of their careers |

`T` |
vector of number of seasons for all players |

`N` |
number of players |

Jim Albert

1 2 |

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.