verbal-autopsy-software / Tariff

R package of Tariff method for VA

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

if condition contains duplicated code

mboyas-mitre opened this issue · comments

if condition contains duplicated code

The code inside the if statement on line 323 is the same as what is outside at line 321 - is this intentional?

Tariff/Tariff/R/Tariff.r

Lines 321 to 324 in 5144ad8

CSMF <- (table(c(causes.test, causes.table2)) - 1) / length(causes.test)
if(use.rank){
CSMF <- (table(c(causes.test, causes.table2)) - 1)/length(causes.test)
}

removed at 2324381