Hello all,
Has anyone else run across a conformability error r(503) when using -factor-? I am running version 14.2.
I cannot share my dataset that I am working on (private information), but the gist is that I am running -factor- on a long list of variables.
I have a theory of what is happening, and I believe it may be a problem with how -factor- is coded. But I would like to hear other's experiences/opinions.
My theory is that -factor- is not working as intended after it drops a variable because of zero variance. Specifically, when I -set trace on- to see where the conformability error occurs, I see that it occurs when -factor- is trying to apply column names to the matrix.
However, before this part of the program, -factor- outputs the following output:
Yet q22_39 still appears in the varlist in the code that -matrix- code that errors out (see bold). Could it be that -factor- is not correctly dropping dropped var names from `varlist'?
Thanks in advanced for the help.
Roger
Has anyone else run across a conformability error r(503) when using -factor-? I am running version 14.2.
I cannot share my dataset that I am working on (private information), but the gist is that I am running -factor- on a long list of variables.
I have a theory of what is happening, and I believe it may be a problem with how -factor- is coded. But I would like to hear other's experiences/opinions.
My theory is that -factor- is not working as intended after it drops a variable because of zero variance. Specifically, when I -set trace on- to see where the conformability error occurs, I see that it occurs when -factor- is trying to apply column names to the matrix.
Code:
- matrix colnames `Mean' = `varlist' = matrix colnames __00000F = q22_2 q22_3 q22_4 q22_6 q22_7 q22_8 q22_9 q22_10 q22_11 q22_12 q22_18 q22_19 q22_20 q22_21 q22_23 q22_27 q22_29 q22_33 q22_35 q22_36 q22_37 q22_39 q22_40 q22_43 conformability error
Code:
note: q22_39 dropped because of zero variance
Thanks in advanced for the help.
Roger
Comment