# prescription errors example, p 114
p_error <- c(rep(1,6),rep(0,9))
score <- c(4, 5, 6, 5, 4, 6, 6, 4,
5, 8, 9, 7, 10, 8, 9)
med1 <- c(1, 1, 0, 0, 1, 1, 0, 0,
0, 0, 0, 0, 0, 0, 1)
med2 <- c(0, 0, 1, 0, 0, 0, 1, 0,
0, 1, 1, 0, 1, 1, 0)
m1 = L_logistic_regress(p_error, score, med1, med2)
m1
Run the code above in your browser using DataLab