Description Usage Arguments Value
View source: R/analysis_avg_vel.R
Returns the veclocity of growth trajectories for _all_ subjects
1 2 | get_traj_velocity(all_traj, z_score = TRUE, agedays_floor = 0,
agedays_limit = 365, FUN = mean_na_rm_generator())
|
all_traj |
Trajectory object returned from |
z_score |
Boolean indicating whether 'y_var' parameter was for z-score data or not. Default is TRUE. |
agedays_floor |
Numeric, indicating the _floor_ (or start of range) of
the number of 'agedays' (inclusive) associated with the derivative of the
trajectories, to which the function in 'FUN' argument should apply to.
Default is 0.
Note, this parameter depends on the
the number of grid points used to generate the trajectories, which
is specified by the |
agedays_limit |
Numeric, indicating the _ceiling_ (or end of range) of
the number of 'agedays' (inclusive) associated with the derivative of the
trajectories, to which the function in 'FUN' argument should apply to.
Default is 365.
Note, this parameter depends on the
the number of grid points used to generate the trajectories, which
is specified by the |
FUN |
A function that will be applied to the first derivative of
the fitted growth trajectory. This function should accept a single
argument; a vector containing the values of the first derivative.
Default value is a _https://en.wikipedia.org/wiki/Currying_
version of the |
A tibble
with two columns, subjid
and avg_vel
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.