[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

From |
Richard Williams <Richard.A.Williams.5@ND.edu> |

To |
statalist@hsphsun2.harvard.edu, "statalist@hsphsun2.harvard.edu" <statalist@hsphsun2.harvard.edu> |

Subject |
Re: st: SUM question |

Date |
Wed, 14 May 2008 23:47:17 -0500 |

At 10:29 PM 5/14/2008, Yamamoto, Satomi wrote:

Hello,

I'm wondering if anybody knows the Stata command that is equivalent to the following SPSS command:

compute newvar= sum(var1, var2).

exe.

The SUM function in SPSS allows you to keep cases with missing values instaead of droppoing them. It's one way of preventing listwise deletion. It would be great if I can get help with this.

Sincerely,

Satomi

egen newvar = rowtotal(var1 var2) ------------------------------------------- Richard Williams, Notre Dame Dept of Sociology OFFICE: (574)631-6668, (574)631-6463 HOME: (574)289-5227 EMAIL: Richard.A.Williams.5@ND.Edu WWW: http://www.nd.edu/~rwilliam * * For searches and help try: * http://www.stata.com/support/faqs/res/findit.html * http://www.stata.com/support/statalist/faq * http://www.ats.ucla.edu/stat/stata/

**Follow-Ups**:**RE: st: SUM question***From:*"Yamamoto, Satomi" <syamamot@ad.uiuc.edu>

**References**:**st: SUM question***From:*"Yamamoto, Satomi" <syamamot@ad.uiuc.edu>

- Prev by Date:
**st: SUM question** - Next by Date:
**RE: st: SUM question** - Previous by thread:
**st: SUM question** - Next by thread:
**RE: st: SUM question** - Index(es):

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