Learn R Programming

impactr (version 0.4.2)

specify_parameters: Specify prediction model parameters

Description

Specify the accelerometer placement used and the subject body mass. These data is needed in order to use the mechanical loading prediction models.

Usage

specify_parameters(data, acc_placement, subj_body_mass)

Value

An object of class impactr_data with the specified parameters as attributes.

Arguments

data

An impactr_data object, as obtained with read_acc().

acc_placement

A character string indicating the accelerometer placement. Can be either "ankle", "back", or "hip".

subj_body_mass

A double scalar indicating the subject body mass in kilograms.

Examples

Run this code
data <- read_acc(impactr_example("hip-raw.csv"))
specify_parameters(data, acc_placement = "hip", subj_body_mass = 79.2)

Run the code above in your browser using DataLab