I have collected data on different furniture type purchases and feel that there may be some underlying correlations between the items chosen and the type of residence the consumer wants to furnish.
The items to choose from are couch, table, pillow, and chair. What I am assuming is that if the consumer has selected a couch, they are likely to choose a pillow as well. Similarly, if the consumer has selected a table, they are likely to purchase a chair. There is a chance that those needing a pillow will select a chair as well, but it is less likely.
The types of residences the consumers are looking to furnish are either an apartment, house, or dormitory. Depending on the type of residence, I assume that only certain furniture is likely to be needed. For instance, a dormitory is less likely to need a couch as most dorms come furnished. An unfurnished apartment may need all furniture options.
Which type of statistical analysis should be performed? I have data representing the frequency of each item purchased below:
Residence | Couch | Table | Pillow | Chair |
Dorm | 30 | 10 | 32 | 12 |
Apartment | 103 | 40 | 99 | 34 |
House | 25 | 11 | 23 | 15 |
For a graphic representation of the relationship between furniture type and residence type, try correspondence analysis:
data have;
length Residence $16;
input Residence Couch Table Pillow Chair;
datalines;
Dorm 30 10 32 12
Apartment 103 40 99 34
House 25 11 23 15
;
ods graphics / height=600 width=600;
proc corresp data=have deviation;
var couch -- chair;
id residence;
run;
Proximity on the graph indicates stronger correspondence.
Or check Bayes Choice Model.
PROC BCHOICE
Don't miss out on SAS Innovate - Register now for the FREE Livestream!
Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.
Learn how use the CAT functions in SAS to join values from multiple variables into a single value.
Find more tutorials on the SAS Users YouTube channel.