- Use ActiLife software to export the raw Actigraph data to .gt3x format. Skip this step you are an accelerometer brand that is not Actigraph.
- Install R and RStudio. If they are installed, check that they are the latest version.
- Store ActChronicFatigue.R on your computer.
- Open ActChronicFatigue.R in RStudio.
- Click the [Source] button in RStudio.
- Follow the instructions in the console.
- The first time you do all software will be installed, which may take a while. The second time you do this you will be asked (in Dutch) whether you want to install the software again. Select No.
- Next, the software will ask you to specify the locations of your data.
- Once that is done the software will continue with processing the data, and classifying the data.
- A summary of the findings will be printed to the screen and also stored in the output directory.
Note: The software assumes that the participant ID is stored in the filename before the first space.
- Follow steps above
- Create labels.csv file with one column for id, one column for label (holding character values for "pp" and "fa") and one column loc specifying the body location ("wrist" and "hip").
- Run script fitmodel.R after updating the info at the top to match your situation.
The models are logistic regression models, which can be interpretted as follows:
If the coefficients are 4.75861402 and -0.05916747, then
x = 4.75861402 + (-0.05916747 * act9167 )
probability_pp = 1/(1+ exp(-x))
In other words: a lower value of act9167 (more inactive person) will result in higher x, which will increase the probability of being pp (pervasively passive), while a higher value of act9167 (more active person) will result in a lower value of x and result in a lower probability of being pp (pervasively passive).