Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Standardizing variables with weighted data

    Hello! This is my first time on Statalist.

    I am currently to calculate standardized variables in Stata using PIAAC data the Public Use Files. The 'egen std()' command does not support weights for either the calculation of the mean or the variance used in the standardization process. Thank you!

    Here is the type of SAS command I am having trouble replicating in Stata.


    PROC STANDARD DATA=all MEAN=0 STD=1 OUT=raw.all;
    VAR LEARNATWORK READYTOLEARN ICTWORK INFLUENCE
    NUMWORK PLANNING READWORK TASKDISC WRITWORK;
    BY CNTRYID;
    WEIGHT SPFWT0;
    RUN;
    */
Working...
X