Pessoal tenho essa tabela,
ob2
negative positive
ob1 negative 455 0
positive 2 8
estou tentando aplicar a
rotina abaixo:
require(DiagnosisMed)
#diagnosis(a,b,c,d, CL = 0.95, print = TRUE, plot = FALSE)
a |
A number representing True Positives from a 2x2 table. Also, TP could
either a 2x2 table (see below) or a column in a dataset representing the
reference standard. |
b |
A number representing False Negatives from a 2x2 table. If TP is a
column in a dataset FN should also be a columns in a dataset, however
representing the index test. |
c |
A number representing False Positives from a 2x2 table |
d |
A number representing True Negatives from a 2x2 table |
diagnosis(455,0,1,8, CL = 0.95, print = TRUE, plot = FALSE)
que me está me mostrando o erro abaixo:
Erro em uniroot(function(or) { :
f() values at end points not of opposite sign
Se substituir o 0 pelo 1, roda, como faço para corrigir isso?
[]'s
Edson Lira
Estatístico
Manaus-Amazonas