After rddensity, plot, I cannot figure out (1) the number of bins drawn by rddensity, plot (other than manually counting the number of rectangles on the graph),
(2) and the lowest x-value and highest x-values for the bins. Any suggestions? Example of rddensity, plot below. In this example there seem to be about 50 bins, the lowest x-value is about 0.05, and the highest x-value is 1.
clear all
use https://sscc.wisc.edu/~rdimond/real_world_tables/reg3
gen x = runiform(0,1)
gen y = 0.9*x + 0.1*nicu
rddensity y, c(0.5) plot
(2) and the lowest x-value and highest x-values for the bins. Any suggestions? Example of rddensity, plot below. In this example there seem to be about 50 bins, the lowest x-value is about 0.05, and the highest x-value is 1.
clear all
use https://sscc.wisc.edu/~rdimond/real_world_tables/reg3
gen x = runiform(0,1)
gen y = 0.9*x + 0.1*nicu
rddensity y, c(0.5) plot

Comment