Site icon Stata.Professor : Your Partner in Research

Using asdocx with un-paired t-test in Stata

I’m happily using your “asdoc” command for Stata. It often makes my life easier. But I just stumbled upon an issue. I wanted to perform an unpaired T-test. In the help file states that a two-sample test using variables should be possible through
asdoc ttest mpg==price, replace
On the contrary, the Stata command for such would be
asdoc ttest mpg==price, unpaired replace
So I think that currently, the asdoc command gives out a paired T-test. This is only notable through the distinct Standard Errors and p-values. I'm kindly asking you to comment on my observation and correct me. Best Wishes,
Exit mobile version