Hi, all
I was trying to work the foreach statement, but I realized that the foreach statement does not work for numeric values. The following code is part of my codes, and I would like to receive any feedback in order for k to work. Please see the red colored place.
quietly forvalues i=1/1{
foreach n in v {
foreach k in 10 50 100 250 {
gen pro_`n'_`k'_`i' = 1 - gammap(kappa_gglog_`n'`i'^-2, (kappa_gglog_`n'`i'^-2)*(ln(lnb_gglog`i'*(100/(100-`k')))-lnb_gglog`i')))
}
}
}
Thank you!
Sincerely,
Sungchul
I was trying to work the foreach statement, but I realized that the foreach statement does not work for numeric values. The following code is part of my codes, and I would like to receive any feedback in order for k to work. Please see the red colored place.
quietly forvalues i=1/1{
foreach n in v {
foreach k in 10 50 100 250 {
gen pro_`n'_`k'_`i' = 1 - gammap(kappa_gglog_`n'`i'^-2, (kappa_gglog_`n'`i'^-2)*(ln(lnb_gglog`i'*(100/(100-`k')))-lnb_gglog`i')))
}
}
}
Thank you!
Sincerely,
Sungchul
Comment