Skip to content

Calculate VARI to compare the change points in retrospective data

License

Notifications You must be signed in to change notification settings

noormuhammadkhan/varifinder

Repository files navigation

varifinder

Monitoring physical activity and other factors of the patients after administrating anesthesia is important because it can have several effects on the body. It is also necessary to detect the time points when the values of these variables change. In general, the total anesthesia period is clinically divided into many phases, where the large deviation of the values within same phase is frequently observed, specially in pediatric patient data. The goal of varifinder is to calculate the variability ratio index (VARI) to evaluate clinical phases in retrospective data.

Installation

You can install the development version of varifinder from GitHub with: (noormuhammadkhan)

# install.packages("devtools")
devtools::install_github("noormuhammadkhan/varifinder")

Example

This is a basic example which shows you how to solve a common problem:

library(varifinder)
 # Prepare a dummy data set
 variable <- rnorm(100, 50, 5)
 time <- c(seq(1,30), seq(1, 40), seq(1,20), seq(1,10))
 phase <- rep(factor(c(1, 2, 3, 4)), c(30, 40, 20, 10))
 
 # Identify the VARI
 varifinder(variable, phase, time)

About

Calculate VARI to compare the change points in retrospective data

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages