ms_sev: MS-Severity

Description Usage Arguments Value Author(s) References Examples

View source: R/ms_sev.R

Description

Estimates the severity score for the user supplied data frame of patients.

Usage

1
ms_sev(data, type="global_armss", range = 2, matrix=F, omsss=FALSE)

Arguments

data

A dataframe containing the variable "edss" for every individual and "age" if "armss" is requested. For MSSS estimation, a variable "dd", corresponding to the disease duration, is needed.

type

Specification of the type of severity calculation. Default is global armss. Other options are "local_armss", "local_msss" and "global_msss".

range

The age-range from which to include individuals in the local ARMSS and local MSSS-estimations. The default age-range is 2 years.

matrix

If true, the global MSSS-matrix is returned. Please note that this option only works for global MSSS and global ARMSS.

omsss

If true, the old MSSS-score will be estimated and returned. Please note that this option only works for the global MSSS.

Value

Returns the initially supplied dataframe with a column added with the requested type of severity score. If "matrix" is set to true, the ms\_sev will return a list where the first element is the data frame with the added severity score, and the second item is the requested ARMSS/MSSS matrix. If omsss is set to TRUE, both the old and the updated MSSS matrix will be returned.

Author(s)

Helga Westerlind, Ali Manouchehrinia

References

To be completed. Please contact maintainer.

Examples

1
2
3
4
5
6
data(edss)
out <- ms_sev(edss)
head(out$data)
out <- ms_sev(edss, type="global_msss", matrix=TRUE)

head(out$data)

Example output

  edss ageatedss dd gARMSS
1  2.0        77  3     NA
2  1.0        26  2   3.07
3  1.0        47  3   1.09
4  3.5        27 14   8.36
5  1.5        56 11   1.13
6  3.0        56  4   3.10
  edss ageatedss dd uGMSSS
1  2.0        77  3   4.84
2  1.0        26  2   2.55
3  1.0        47  3   2.29
4  3.5        27 14   4.64
5  1.5        56 11   1.93
6  3.0        56  4   6.35

ms.sev documentation built on May 2, 2019, 7:27 a.m.

Related to ms_sev in ms.sev...