I have two questions regarding two problems that I have been facing so far.

First after running a probit model I want to calculate he percentage of correctly called event by using different cutoffs. I am trying to do the following:

first set the cutoffs: y=.09 y=.1 y=.11 y=.12

for each y{

estat classification, cutoff(`y')
}

In here I want to test different cutoffs for the predicted probability in a loop. Should I use foreach or forvalue command in this case and how to do that?


Second, I want to calculate the sum of wrongly called event and don't know how to do that by using Stata command.

After command
estat classification, cutoff(.12)


Array

I want to calculate the sum of the false rate (24.54 + 33.75) in a loop. Is there any way to do that in Stata?


Thanks in advance