Dear Statalisters,
I am trying to obtain a 95% confidence interval for a partial correlation coefficient, using the -pcorr- command with bootstrapping.
I have been running this in the 'auto' dataset, with the following code:
-sysuse auto-
-bootstrap r(rho), reps(1000) nodots seed(1): pcorr mpg weight length-
but I get the following error message returned:
" 'r(rho)' evaluated to missing in full sample
r(322)"
I appreciate that there was a similar thread here: https://www.statalist.org/forums/for...orr-with-stata
but this only actually looked at -pwcorr- and not -pcorr-.
Would anyone be able to shed any light on what I am failing to see and offer any suggestions as to how i could obtain these CIs, if indeed it is possible?
Thank you in advance,
Tom Norris
I am trying to obtain a 95% confidence interval for a partial correlation coefficient, using the -pcorr- command with bootstrapping.
I have been running this in the 'auto' dataset, with the following code:
-sysuse auto-
-bootstrap r(rho), reps(1000) nodots seed(1): pcorr mpg weight length-
but I get the following error message returned:
" 'r(rho)' evaluated to missing in full sample
r(322)"
I appreciate that there was a similar thread here: https://www.statalist.org/forums/for...orr-with-stata
but this only actually looked at -pwcorr- and not -pcorr-.
Would anyone be able to shed any light on what I am failing to see and offer any suggestions as to how i could obtain these CIs, if indeed it is possible?
Thank you in advance,
Tom Norris
Comment