amse: aMSE

Description Usage Arguments Value References

View source: R/amse.R

Description

Function for calculating age-stratified subject-specific mean squared error

Usage

1
2
amse(observed = "observed", predicted = "pred", id.var = "id",
  time.var = "time", breaks = c(0, 6, 12, 18, 24), data)

Arguments

observed

observed growth values (e.g. height or weight)

predicted

predicted values from models fitted to observed data

id.var

variable that identifies individual subjects

time.var

time variable (e.g. age)

breaks

vector indicating location of age cutoffs for calculating MSE per group (default is in months)

Value

data.frame with id, time group, and subject-specific MSE estimates

References

Grigsby MR, Di J, Leroux A, Zipunnikov V, Xiao L, Crainiceanu C, Checkley W. Novel metrics for growth model selection. Emerging themes in epidemiology. 2018 Feb;15(1):4.


MatthewGrigsby/growthmetrics documentation built on May 25, 2019, 8:29 p.m.