Hi,
For a balance table, I am working on, I have generated the sample means and proportion of my demographic values in the dataset and merged it with the population means and proportion (obtained from national level stats). I'm now attempting to calculate the t-test between each value and generate a p value column.
The issue is, I am not sure how I can do this
My data is as follows
```
* Example generated by -dataex-. For more info, type help dataex
clear
input str28 var float(sample population ttest)
"% Employed" 44 60.2 .
"% Female" 87 50.8 .
"% Non-white" 76 28 .
"% Parent" 82 54 .
"% Under FPL 2019" 50 12 .
"Age" 35 36.9 .
"Debt stock ($)" 21533 90460 .
"Earned income last mo. ($)" 816 93563 .
"HH size" 3.7 2.53 .
"Savings stock ($)" 843 16420 .
"Unearned income last mo. ($)" 624 97759 .
end
```
Any suggestions? Alternatively, would a ttest be appropriate here or something like a chi-square test be more suited?
Thanks!
Related Posts with Ttest between pop mean and sample mean
Dropping observationsHi I am working on a data of transplant patients and some of the patients have multiple transplants …
dynamic panel threshold model and endogeneityDear all, i hope you are doing good you and your families i'm working on my paper and i will be ap…
Syntax error r(198) when trying to loop an rdrobust command in a matrixDear stata forum, I am writing a paper on the causal effect of compulsory school reforms, expanding…
Question about comparing the results of OLS regression and Poisson regressionDear all, I have a rather basic question and apologize in advance because of it. I am using a pane…
Merging Two VariablesHello, I am lost and could need some help! I have one variable, lets call it X, which includes livi…
Subscribe to:
Post Comments (Atom)
0 Response to Ttest between pop mean and sample mean
Post a Comment