Usage
timeSerieAnalysis(variableList,
baseModel,
data,
timevar = "time",
contime = ".",
Outcome = ".",
...,
description = ".",
Ptoshow = c(1),
plegend = c("p"),
timesign = "-",
catgo.names = c("Control", "Case")
)
Arguments
variableList
A data frame with two columns. The first one must have the names of the candidate variables and the other one the description of such variables
baseModel
A string of the type "1 + var1 + var2" that defines the model to which variables will be fitted
data
A data frame where all variables are stored in different columns
timevar
The name of the column in data
that stores the visit ID
contime
The name of the column in data
that stores the continuous time (e.g. days or months) that has elapsed since the baseline visit
Outcome
The name of the column in data
that stores an optional binary outcome that may be used to show the stratified analysis
description
The name of the column in variableList
that stores the variable description
Ptoshow
Index of the p-values to be shown in the plot
plegend
Legend of the p-values to be shown in the plot
timesign
The direction of the arrow of time
catgo.names
The legends of the binary categories
...
Additional parameters to be passed to the gls
function