Hello.
I cant seem to work out the coding that replicates the following function, which when copied from the 'command copied from clipboard', looks like:
'time_ann_dif PriceSensitive, sort : ttest Volume, by(Pre_or_Post_Colo) unequal'. Does someone know how this can be done?
Essentially I want to run a ttest but with multiple variable, then save the output using putexcel. I know how to use putecel but cant get the code working for multiple variables.
As an FYI time_ann_dif has values that range from -30 to 30, while PriceSensitive has values that are TRUE or FALSE.
Thanks
Related Posts with ttest code multiple variables that define group
Working with multiple if conditionsDear Statalist, I am browsing a dataset with multiple if conditions. Is it possible to identify the…
Two way or one way fixed effect ??Hi, test to choose between model two way fixed effec or fixed effect ordinary ? i use STATA 14 …
Q-Q plots - why is Tukey Mean-Difference plots not an option in Stata?Q-Q plot combined with Tukey mean-difference plot - re 'Visualizing Data by Cleveland (1993) Dear A…
Gen a variable in a loop: error "variable already defined"Hello everyone. I am trying to run this loop. I need to get two subsamples of frequent and occasion…
Reshape from wide to longHi everyone, I get data from Datastream and there are some firms having no data, i.e. price_14 "$$…
Subscribe to:
Post Comments (Atom)
0 Response to ttest code multiple variables that define group
Post a Comment