Learn R Programming

ahw (version 0.1.0)

plotContWeights: Plots mean and individual weight trajectories

Description

Plotting all the individual weight trajectories in fr, along with the mean. Plots weights for assessment.

Usage

plotContWeights(
  fr,
  stopTimeName = "to",
  startStatusName = "from.state",
  endStatusName = "to.state",
  idName = "id"
)

Value

No return value.

Arguments

fr

Data with weight column

stopTimeName

Name of column with stop time of the at risk period

startStatusName

Name of the variable that contains the name of start state for each at-risk interval

endStatusName

Name of the variable that contains the name of end state for each at-risk interval

idName

Name of column in dataFr that identifies individuals

Author

Pål Christie Ryalen <p.c.ryalen@medisin.uio.no>