Usage
LMSfit(x, y, sex, data = parent.frame(),
centiles = c(3, 10, 25, 50, 75, 90, 97),
df = c(6, 10, 8), L1 = FALSE, plot = TRUE, ...)
Arguments
x
vector of tabulated ages.
y
matrix of corresponding measurement centiles, e.g. of height or weight, with nrows = length(x)
and ncols = length(centiles)
.
sex
two-level factor where level 1 corresponds to male and level 2 to female.
data
optional data frame containing x
, y
and sex
.
centiles
vector of centiles corresponding to the columns of y
, default c(3, 10, 25, 50, 75, 90, 97).
df
length-3 vector with the cubic smoothing spline equivalent degrees of freedom (edf) for the L, M and S curves, default c(6, 10, 8).
L1
logical constraining the L curve to 1, i.e. a Normal distribution, default FALSE.
plot
logical to plot the estimated L, M and S curves, default TRUE.
...
optional graphical parameters for the plots.