[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

st: [Fwd: Sum of variables with missing values]

Subject   st: [Fwd: Sum of variables with missing values]
Date   Thu, 9 Apr 2009 10:14:56 +0200 (CEST)

Thank you very much Caleb.
I did:

egen capscore=rowtotal(quality newequip intrd skilltrai skilled edu traiprog)

and I solved the problem

Alejandra Molina

Caleb Southworth
Associate Professor
Univ. of Oregon Sociology

-------------------------- Messaggio originale ---------------------------
Oggetto: Sum of variables with missing values
Data:    Mer, 8 Aprile 2009 11:42 pm

Dear statalist,
I have to make this operation:
gen capscore= quality+newequip+intrd+skilltrai+skilled+edu+traiprog
I have several missing values in the different variables.
I would like to proceed with the sum (forgetting missing values), what may
I do?
For instance, if I have one of the 7 variables that have missing values, I
woul like to see the result of the sum of the other 6.
Thanks and regards,
Alejandra Molina

*   For searches and help try:

© Copyright 1996–2017 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index