Hi Fred,
what exactly do you want to do here?
Artur
2 How can I change the following script without the 2 loops?
<hansl>
list full = educ female exper tenure numdep \
nonwhite smsa northcen south west construc ndurman trcommpu trade \
services profserv profocc clerocc servocc
matrix fullid = {} # do this the dumb way first
loop i=1..nelem(full)
fullid |= varnum(varname(full[i]))
endloop
"model_full" <- ols lwage 0 full --robust
matrix pvalues = 2*pvalue(t,$df,abs($coeff) ./ $stderr)
matrix id = pvalues .> 0.05
list shortlist = full[1:4]
loop i=5..nelem(full)
if id[i+1] == 0
shortlist += varnum(varname(full[i]))
endif
endloop
"model_part" <- ols lwage 0 shortlist —robust
</hansl>