DSI2 | R Documentation |
This function calculates the Disease Severity Index (DSI) given a vector of classes, a vector of frequencies, and a maximum possible class value. The DSI is calculated as a weighted sum of class values, where each class is multiplied by its corresponding frequency, then divided by the product of the total frequency and maximum class value, and finally multiplied by 100 to get a percentage.
DSI2(class, freq, max)
class |
A numeric vector representing the classes. |
freq |
A numeric vector representing the frequency of each class. Must be the same length as 'class'. |
max |
A numeric value representing the maximum possible class value. |
Returns a single numeric value representing the DSI.
Other Disease quantification:
CompMuCens()
,
DSI()
DSI2(c(0, 1, 2, 3, 4), c(2, 0, 5, 0, 5), 4)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.