Cerebral-palsy gait pipeline (GDI + pathology flags)
Source:R/pipelines-population.R
pipelineCPgait.RdComputes the Gait Deviation Index (Schwartz & Rozumalski 2008) for a subject's kinematics, categorises it, adds the kinematic pathology flags detectable from the same waveforms (stiff knee, Trendelenburg), and records the GMFCS level for stratified interpretation.
Arguments
- kinematics
Subject kinematics passed to
gaitDeviationIndex()(a variables x cycle-points matrix with row names matching the norm).- norm
A
gait_normreference (fromPhysioGaitNorm::loadGaitNorm()); ifNULL, the default is loaded from PhysioGaitNorm.- gmfcs
Optional Gross Motor Function Classification System level (I-V).
Examples
if (requireNamespace("PhysioGaitNorm", quietly = TRUE)) {
set.seed(1)
vars <- c("pelvic_tilt", "pelvic_obliquity", "pelvic_rotation",
"hip_flexion", "hip_adduction", "hip_rotation",
"knee_flexion", "ankle_dorsiflexion", "foot_progression")
kinematics <- matrix(rnorm(9 * 51), 9, 51, dimnames = list(vars, NULL))
pipelineCPgait(kinematics)
}
#> <cp_gait_report>
#> GDI: 60.7 (severe)
#> pathology flags: stiff_knee