The Sashelp.Margarin data set is a scanner panel data set that lists purchases of margarine. There are 313 households and a total of 3,405 purchases.
The variable HouseID represents the household ID; each household made at least five purchases, which are defined by the choice set variable Set. The variable Choice represents the choice that households made among the six margarine brands for each purchase or choice set. The variable Brand has the value 'PPK' for Parkay stick, 'PBB' for Blue Bonnet stick, 'PFL' for Fleischmann’s stick, 'PHse' for the house brand
stick, 'PGen' for the generic stick, and 'PSS' for Shedd’s Spread tub. The variable LogPrice is the logarithm of the product price. The variables LogInc and FamSize provide information about household income and family size, respectively. The following steps display information about the
Sashelp.Margarin data set and create Figure B.13:
title 'Margarine Data';
proc contents data=sashelp.Margarin varnum;
ods select position;
run;
title 'The First Five Observations Out of 20,430';
proc print data=sashelp.Margarin(obs=5);
run;
Copyright © SAS Institute Inc. All Rights Reserved.