I'm getting a straight line for part b when i plot the mean probability
versus the adaaca variable value. This is the code I use:
for (value in min(data$ADAACA):max(data$ADAACA)){
explan <- as.matrix(c(1, max(data$JULYECQ2), 0, value,0))
prob <- sort(pnorm(par.draws %*% explan))
adaacaProb[i] <- mean(prob)
Could anyone tell me what I could be doing wrong or what the problem might
be? thanks!
~mee-jung
Show replies by date