sigmoflex: Sigmoflex

Description Usage Arguments Examples

Description

Implementation of a proposal to quantify the differences between disease progress curves of different data sets. In a nutshell, the method can be divided into several steps. First, a reference data set must be chosen and a model is fitted to it. Then for each other data set, the points are moved along the x-axis (time axis), under some constraints, until the fitted model match as well as possible the reference model. The relative movements of the points are totally captured by two parameters, a and b, which correspond to the translation and "streching" parameters. Use sigmoflex_helper for a visual interpretation of a and b.

Usage

1
2
3
sigmoflex(data, reference, ..., threads = 1)

sigmoflex_helper()

Arguments

data

A data frame with 3 columns in the following order: the labels of the data sets, the dates of the records, and the observation values (only on a 0-1 scale at the moment).

reference

The label of the reference data set (a character string).

...

Additional arguments to be passed to other methods.

threads

Number of threads to perform the computations.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
# An example data frame to play with:
head(dummy_data)
str(dummy_data)

res <- sigmoflex(dummy_data, "641")
res
plot(res)

summary_res <- summary(res)
summary_res
plot(summary_res)

sigmoflex_helper()

chgigot/sigmoflex documentation built on May 26, 2019, 9:35 a.m.