make.anascore: Makes ANAscore variable with the given set of predefined...

Description Usage Arguments Value Examples

View source: R/make.anascore.R

Description

It takes a vector of numbers referred to the variables you want to include. The variables have to be in the correct order to properly assign weights. the

Usage

1
2
3
4
5
make.anascore(symptoms = c(17:21, 23:29, 31:39, 41:55, 65), weights = c(3,
  2, 1, 2, 2, 3, 1, 4, 3, 4, 12, 3, 8, 4, 1, 20, 4, 2, 8, 8, 1, 20, 18, 20, 10,
  6, 18, 12, 10, 18, 2, 8, 3, 15, 20, 6, 50), grades = c(1, 1, 1, 1, 1, 1, 1,
  2, 1, 2, 3, 1, 2, 2, 1, 4, 2, 1, 2, 2, 1, 4, 3, 4, 2, 2, 3, 3, 2, 3, 1, 2, 1,
  3, 4, 2, 5), data = data)

Arguments

symptoms

The vector of character variable names or numbers corresponding to the variables in correct order corresponding to proper weights.

weights

The vector of the same lenght as symptoms, defining the impact symptom have on the severity of anaphylaxis.

grades

The vector of the same lenght as symptoms, defining the severity grades of the symptoms. Try not to make more than 5 grades.

data

Data frame where the variables are to be calculated.

Value

The vector of ANAscore values.

Examples

1
data$ANAscore <- make.anascore()

wolass/anareg documentation built on May 4, 2019, 9:46 a.m.