# Amputee Gait Analysis using fgdiR

## Overview

The `fgdiR` package computes the Functional Gait Deviation Index (FGDI) for quantifying gait pathology using multivariate functional principal components.

## Example Usage

### Load Amputee Data

    data(A_Data)
    #> Warning in data(A_Data): data set 'A_Data' not found
    data(A_data_info)
    #> Warning in data(A_data_info): data set 'A_data_info' not found

### Compute FGDI

    ID <- c(rep("Case", 18), rep("Control", 42))
    fgdi_out <- FGDI(A_Data, ID, PVE_I = 0.99)

### Visualize One Joint Comparison

    plot_gait_comparison(1, "Pelvis Tilt", fgdi_out, A_Data, ID, combined=FALSE)