I would like to run the independent t-test for the following dataset and want to test the null hypothesis for a difference of 300 instead of the default 0.
The command I use so far is ttest "Outcome, by(Type) unequal"
Code:
* Example generated by -dataex-. To install: ssc install dataex clear input int Type double Outcome 101 2997.5198380566803 101 2937.7315789473687 101 2955.9720647773283 101 2956.985425101215 101 2974.2125506072875 101 2961.0388663967615 101 2971.1724696356277 101 2976.239271255061 101 2966.1056680161946 101 2948.878542510122 101 2930.638056680162 70 2598.276923076923 70 2566.8 70 2603.046153846154 70 2646.923076923077 70 2438.9846153846156 70 2588.7384615384617 70 2579.2000000000003 70 2624.9846153846156 70 2595.415384615385 70 2586.8307692307694 70 2625.9384615384615 end
Thank you in advance.
Best,
Amanda
0 Response to Independent t-test for differences other than 0
Post a Comment