I am new to STATA data analysis ? I have fair working understanding of SPSS. I need to run a simple pearson correlation model with all the significance indicated.
The code I ran
pwcorr var 1 var 2 var 3
estpost correlate var 1 var 2 var 3
esttab ., not unstack
estimates table, star(.05 .01 .001)
STATA - Output
Var (1)
----------------------------
Var 1 -0.0709
Var 2 -0.137*
Var 3 0.183**
This code only gives the significance with the first variable only in a separate table, significances for the other variables are not indicated.
However when i generate the pearson correlation in SPSS. I can get the significance level printed within the table itself.
SPSS Results
Kindly someone teach me the code i need to run to generate the table generated by SPSS in STATA.
Thank you
The code I ran
pwcorr var 1 var 2 var 3
estpost correlate var 1 var 2 var 3
esttab ., not unstack
estimates table, star(.05 .01 .001)
STATA - Output
Variables | (1) | (2) | (3) | (4) |
(1) | 1.000 | |||
(2) | 0.250 | 1.000 | ||
(3) | 0.262 | 0.387 | 1.000 | |
----------------------------
Var 1 -0.0709
Var 2 -0.137*
Var 3 0.183**
This code only gives the significance with the first variable only in a separate table, significances for the other variables are not indicated.
However when i generate the pearson correlation in SPSS. I can get the significance level printed within the table itself.
SPSS Results
Variables | (1) | (2) | (3) |
(1) | 1.000 | ||
(2) | 0.980** | 1.000 | |
(3) | 0.0001** | 0.000 | 1.000 |
(4) | 0.195* | 0.158*** | -0.006 |
Kindly someone teach me the code i need to run to generate the table generated by SPSS in STATA.
Thank you
Comment