Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: st: t-test and missing values
From
Nick Cox <[email protected]>
To
[email protected]
Subject
Re: st: t-test and missing values
Date
Sat, 26 May 2012 14:44:10 +0100
No; -ttest, unpaired- takes you literally. If the values on two
variables in the same observation are unpaired, then their being in
the same observation is immaterial. How could it be otherwise?
You don't explain why your data structure puts things in the same
observation that aren't related, but you can insist on what you seek
with
... if !missing(var1, var2)
Nick
On Sat, May 26, 2012 at 2:29 PM, Navid Asgari <[email protected]> wrote:
> I am facing a simple but a bit confusing situation...
>
> I am running a simple unpaired t-test on equality of means of two
> variables, say var1 and var2
>
> var1 var2
> ------------------------------
> 1 3.4
> 2 3
> 3 1
> . 2
> 4 .
> 0 .
> .
>
> I want Stata to ignore the missing values? In other words, these
> records should not be counted as a sample point?
>
> Does "unpaired" option after ttest do this?
--
*
* For searches and help try:
* http://www.stata.com/help.cgi?search
* http://www.stata.com/support/statalist/faq
* http://www.ats.ucla.edu/stat/stata/