Hello,
I need to run a descriptive analysis on a huge number of columns. To do so I made the following script :
dt = Current Data Table();
column_names = dt << Get Column Names(numeric,String);
for(i=3,i<=NItems(column_names),i++,
colName = column_names;
cmd = Expr(
ow = dt << Distribution(
Continuous Distribution( Column( cName ) ),
Where( :SEX == "F" )
);
owr = ow<<report;
);
Substitute Into(cmd,Expr(cName),colName);
Eval(cmd);
);
Current Journal() << Save HTML(".....\test.htm");
Now, when I run it I get an error message in log window "One or more columns have nothing but missing values.".
I have some columns that all values or only those for specific "SEX" are missing data. How could I check it in my loop and skip them in analysis ?
Thanks