Hello,
I have 2 Variables: Star, bin_NAV.
- Star is the ordinal scale where its data included 2-star, 3-star, 4-star and 5-star.
- bin_NAV is the ordinal scale where its data included 1, 2, 3, 4 and 5.
(bin_NAV is created from proc hpbin to bin the ratio scale variable, NAV, into 5 classes)
I want to build histogram classify by Star by the following procedure.
The histogram show the value of bin_nav at 0 and 6, which are not in the data. (See figure below)
What wrong is the code?
Thank You.
UNIVARIATE doesn't know that you think the values of BIN_NAV are categories. It sees a numeric variable, considers it to be continuous, and bins them according to its default rule. You want to use the MIDPOINTS= option of the HISTOGRAM statement.
UNIVARIATE doesn't know that you think the values of BIN_NAV are categories. It sees a numeric variable, considers it to be continuous, and bins them according to its default rule. You want to use the MIDPOINTS= option of the HISTOGRAM statement.
Learn the difference between classical and Bayesian statistical approaches and see a few PROC examples to perform Bayesian analysis in this video.
Find more tutorials on the SAS Users YouTube channel.
Ready to level-up your skills? Choose your own adventure.