Bookmark and Share

Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down on April 23, and its replacement, is already up and running.

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

Re: st: ttest and svy

From   Richard Goldstein <>
Subject   Re: st: ttest and svy
Date   Tue, 19 Feb 2013 15:25:51 -0500

you don't say whether you want a one-sample or a two-sample t-test

if two-sample, use -svy: regress- where the only predictors are the
constant and an indicator variable for the group

if one-sample, use -svy: regress- where the only predictor is the
constant; note that if your data are actually in two variables for
pairing, make a new variable that is the difference between the two and
use that for your outcome variable


On 2/19/13 3:18 PM, Ana wrote:
> Hello,
> Does anyone know how to apply a simple ttest using svy command?
> I've tried the 'svy: cnsreg ...' but it did not work out.
> Best,
> Ana.
*   For searches and help try:

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