compute_hjc_regression: Compute Hip Joint Center using Harrington's of Bell and...

View source: R/compute_hjc_regression.R

compute_hjc_regressionR Documentation

Compute Hip Joint Center using Harrington's of Bell and Brand's Method

Description

This function computes the right and left hip joint centers based on Harrington's formula.

Usage

compute_hjc_regression(
  data,
  LASIS_name = "L.ASIS",
  RASIS_name = "R.ASIS",
  LPSIS_name = "L.PSIS",
  RPSIS_name = "R.PSIS",
  RHJC_name = "R.HJC",
  LHJC_name = "L.HJC",
  method = "harrington",
  append = TRUE
)

Arguments

data

A data frame containing marker trajectories with columns corresponding to the names specified by the 'LASIS_name', 'RASIS_name', 'LPSIS_name', and 'RPSIS_name' parameters.

LASIS_name

A string specifying the column name or pattern for the left anterior superior iliac spine markers in the data.

RASIS_name

A string specifying the column name or pattern for the right anterior superior iliac spine markers in the data.

LPSIS_name

A string specifying the column name or pattern for the left posterior superior iliac spine markers in the data.

RPSIS_name

A string specifying the column name or pattern for the right posterior superior iliac spine markers in the data.

RHJC_name

A string specifying the prefix for the right hip joint center column names in the output.

LHJC_name

A string specifying the prefix for the left hip joint center column names in the output.

method

A string specifying the method to use for calculations. Options are "harrington" or "bell". Default is "harrington".

append

Logical. If TRUE, appends the computed hip joint center columns to the original data frame. If FALSE, returns a list containing the computed hip joint center data frames.

Value

A data frame with appended hip joint center columns or a list of two data frames containing the right and left hip joint centers.


Kneerav/biomechanics documentation built on March 30, 2025, 12:56 a.m.