Hello everyone,
I have a dataset with two variables treated as both categorical and continuous. I'm attempting to create scatterplots that depict the relationship between the two continuous variables within each subgroup of the categorized variable. However, my current results are not satisfactory, as I'm obtaining the same p-value in all four scatterplots. I would appreciate any assistance with this issue. Thank you.
CODE:
reg ntprobnp any_sv
local r2: display %3.2f e(r2)
twoway (scatter ntprobnp any_sv) (lfitci ntprobnp any_sv), note(R-squared=`r2') by(BNPcut SV)
I have a dataset with two variables treated as both categorical and continuous. I'm attempting to create scatterplots that depict the relationship between the two continuous variables within each subgroup of the categorized variable. However, my current results are not satisfactory, as I'm obtaining the same p-value in all four scatterplots. I would appreciate any assistance with this issue. Thank you.
CODE:
reg ntprobnp any_sv
local r2: display %3.2f e(r2)
twoway (scatter ntprobnp any_sv) (lfitci ntprobnp any_sv), note(R-squared=`r2') by(BNPcut SV)