#trump #poormathskills
#trump #poormathskills
forvalues i=1/`=_N' {
//do some action on `i'
}
#stata #cleancode
forvalues i=1/`=_N' {
//do some action on `i'
}
#stata #cleancode
For example, intead of:
replace somevar = 1 if someothervar >= 3 & someothervar <=5
use:
replace somevar = 1 if inrange(someothervar, 3, 5)
#stata #cleancode
For example, intead of:
replace somevar = 1 if someothervar >= 3 & someothervar <=5
use:
replace somevar = 1 if inrange(someothervar, 3, 5)
#stata #cleancode
ssc install savesome
input byte(tx age)
0 18
0 19
1 21
1 24
1 17
end
savesome if tx== 1 using txonly
savesome if tx == 0 using ctrlonly
use txonly, clear
tab tx
use ctrlonly, clear
tab tx
#stata #cleancode
ssc install savesome
input byte(tx age)
0 18
0 19
1 21
1 24
1 17
end
savesome if tx== 1 using txonly
savesome if tx == 0 using ctrlonly
use txonly, clear
tab tx
use ctrlonly, clear
tab tx
#stata #cleancode
I gave a presentation on an algorithm for auto-coding MedDRA, PS.6B - Electronic health records and machine learning.
I gave a presentation on an algorithm for auto-coding MedDRA, PS.6B - Electronic health records and machine learning.