Hi everyone,
I am having an issue that seems to work fine in Stata 16 on one of my machines, but when I switch over to a separate machine I'm getting the option label() not allowed when I run a heatplot. I thought maybe the option was discontinued in Stata 17, so I switched back to Stata 16.1, and I'm still getting the same error. I'm running this code.
Indeed, when I pull up the help file on my Mac the option for values(label) exists to substitute the significance values. It says,
But on my help file on the Windows machine, I don't see this as an option. Does anyone know if this option has been discontinued recently? If so, is there a way to incorporate this? I'm trying to produce a heatplot with a correlation matrix with significance stars.
Thanks.
I am having an issue that seems to work fine in Stata 16 on one of my machines, but when I switch over to a separate machine I'm getting the option label() not allowed when I run a heatplot. I thought maybe the option was discontinued in Stata 17, so I switched back to Stata 16.1, and I'm still getting the same error. I'm running this code.
Code:
pwcorr q2 q1a q1b q1c q1d q1e q1f q1g q1h q1i q1j q1k q1l q1m q1n q1o q1p q1q [aw=weight], sig matrix C = r(C) matrix sig = r(sig) heatplot C, values(label(sig)) generate
"As seen above, option values() can be used to display the values of the
correlations with the color fields. It is also possible to print
alternative information collected from a second matrix using suboption
label(). In the following example, p-values are printed:
. pwcorr price mpg trunk weight length turn foreign, sig
. matrix C = r(C)
. matrix sig = r(sig)
. heatplot C, values(label(sig) format(%9.3f)) color(hcl diverging,
intensity(.6)) legend(off) aspectratio(1)
correlations with the color fields. It is also possible to print
alternative information collected from a second matrix using suboption
label(). In the following example, p-values are printed:
. pwcorr price mpg trunk weight length turn foreign, sig
. matrix C = r(C)
. matrix sig = r(sig)
. heatplot C, values(label(sig) format(%9.3f)) color(hcl diverging,
intensity(.6)) legend(off) aspectratio(1)
Thanks.
Comment