Setup initial file structure

This commit is contained in:
2024-03-05 11:20:30 +01:00
parent 6183a6391b
commit 70e53e7760
708 changed files with 277486 additions and 0 deletions

View File

@ -0,0 +1,23 @@
program define dropmissing
syntax varlist [, missing(string) delete]
tokenize `varlist'
local nbitems:word count `varlist'
if "`missing'"=="" {
local missing="."
}
local nbmissing:word count `missing'
forvalues i=1/`nbitems' {
forvalues j=1/`nbmissing' {
local miss:word `j' of `missing'
if "`delete'"!="" {
drop if ``i''==`miss'
}
else {
replace ``i'=. if ``i''==`miss'
}
}
}
end