Dear all,
I am trying to create a customizable table based on the video from the stata blog
https://blog.stata.com/2021/08/24/cu...istical-tests/.
However, I keep getting this error message - "keyword command requires option command()". I am unable to figure what is wrong with my code
Below is my code:
ttest age, by(mcdexpand2021)
return list
table (command) (result), command(ttest white_nh, by(mcdexpand2021))
table (command) (result),
command(Non-Expansion = r(mu_1)
Expansion = r(mu_2)
Diff = (r(mu_2)-r(mu_1))
pvalue = r(p)
: ttest white_nh, by(mcdexpand2021))
I am just learning how to use Stata, I would really appreciate your help.
Warm regards
Tolu
I am trying to create a customizable table based on the video from the stata blog
https://blog.stata.com/2021/08/24/cu...istical-tests/.
However, I keep getting this error message - "keyword command requires option command()". I am unable to figure what is wrong with my code
Below is my code:
ttest age, by(mcdexpand2021)
return list
table (command) (result), command(ttest white_nh, by(mcdexpand2021))
table (command) (result),
command(Non-Expansion = r(mu_1)
Expansion = r(mu_2)
Diff = (r(mu_2)-r(mu_1))
pvalue = r(p)
: ttest white_nh, by(mcdexpand2021))
I am just learning how to use Stata, I would really appreciate your help.
Warm regards
Tolu
Comment