Description Usage Arguments Details Value Author(s) Examples
This function evenly partitions time measurements and produces additional ones for an
individual in his/her age range. It then uses predict.gmusim
to obtain additional fitted
values to calculate age at peak velocity (apv), peak velocity (pv) and height (or weight) at peak velocity (ypv).
1 |
x |
vector of ages (assume x is centered). |
z |
data.frame of time independent covariates (assume z is centered). |
p |
number of columns in data.frame z. |
id |
factor of subject identifiers. |
idmat |
matrix of unique id, note that this matrix has been setted to 1 column. |
n |
time (age) measures after extension for computing aphv (default is round(365*diff(range(x)))). |
For some individuals, the number of measurements is small. In order to calculate accurate apv (age at peak velocity), pv (peak velocity) and ypv (height at peak velocity or weight at peak velocity), it is necessary to perform interpolation for original time measurements and obtain additional predictions for each individual. This function extends time (age) measurements between min(time) and max(time), as well as covariates z, note that output of z has been centralized.
a data frame including expanded x(age), centralization covariates z and corresponding id.
Zhiqiang Cao zcaoae@connect.ust.hk, Man-Yu Wong mamywong@ust.hk
1 2 3 4 5 6 7 8 9 10 11 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.