growthModelComp
and survModelComp
.
growthModelComp
and survModelComp
. This can be invoked directly from growthModelComp
and survModelComp
with the argument makePlot = TRUE
.
plotGrowthModelComp(grObj,summaryTable, dataf, expVars,
testType = "AIC",
plotLegend = TRUE, mainTitle = "", legendPos = "topright",...)
plotSurvModelComp(svObj, summaryTable, dataf, expVars,
testType = "AIC", plotLegend = TRUE, mainTitle = "",ncuts=20,
legendPos = "bottomleft",...)
treatN
.
treatN
.
growthModelComp
and survModelComp
that contains linear predictor and testType scores (see growthModelComp
and survModelComp
).
size
and sizeNext
c("1", "size", "size + size2")
.
loglike
from the lm or glm object. For example "AIC"
or "BIC"
. Defaults to "AIC"
.
TRUE
, positions the legend in "topleft"
for growth models and "bottomleft"
for survival models.
main
attribute in plots (if makePlot = TRUE
. defaults to NULL
.
growthModelComp
and survModelComp
. See plotGrowthModelComp
and plotSurvModelComp
for more details.
growthModelComp
,growthModelComp
# Data with size and sizeNext
dff <- generateData()
grModels <- growthModelComp(dff, makePlot = FALSE)
Run the code above in your browser using DataLab