Hello,
I am trying to run a PCA on variables I used in my cluster analysis but keep receiving the following error code:
. factor offershhaide2 offersmedsocial2 offersnurs2 offerspt2 offersot2 offersspeechpatho2 rn_cnt ratioallotherstaffpatient
> ratiornpatient totalnumofservicesoffered
(obs=4)
note: offersnurs2 dropped because of zero variance
(collinear variables specified)
conformability error
r(503);
I have no idea why! I have included a few observations from my dataset below.
I am trying to run a PCA on variables I used in my cluster analysis but keep receiving the following error code:
. factor offershhaide2 offersmedsocial2 offersnurs2 offerspt2 offersot2 offersspeechpatho2 rn_cnt ratioallotherstaffpatient
> ratiornpatient totalnumofservicesoffered
(obs=4)
note: offersnurs2 dropped because of zero variance
(collinear variables specified)
conformability error
r(503);
I have no idea why! I have included a few observations from my dataset below.
Code:
* Example generated by -dataex-. To install: ssc install dataex clear input float(offershhaide2 offersmedsocial2) byte offersnurs2 float(offerspt2 offersot2 offersspeechpatho2 rn_cnt ratioallotherstaffpatient ratiornpatient totalnumofservicesoffered) byte clus .9641132 .8040028 1 .9972395 .9199448 .8826777 4.51539 .0198233 .0175859 5.567978 1 .9862069 .9282759 1 .9986207 .982069 .9565517 8.1728 .0525494 .0185362 5.851724 2 .9121037 .7598463 1 .9726225 .9053794 .8117195 1.33184 .0159962 .0108745 5.361671 3 1 1 1 1 1 1 2.543425 .0174332 .0142978 6 4 end
Comment