Skip to Content

Data Import

We have already described all the steps of the Data Import Wizard in previous chapters. Therefore, we present most of the following screenshots without commentary and only highlight items specific to this example. To start the Data Import Wizard, we open the file:

Perfume.csv
CSV
Data > Open Data Source > Text File
Data Structure Definition: semicolon, UTF-8, and column headers
Click to Zoom
Default variable types: 1,321 records, 47 continuous variables and 2 discrete variables
Click to Zoom

For this example, we need to override the default data type for the variable named Product\mathit{Product} as it is a nominal product identifier rather than a numerical value. We can change this variable’s data type by highlighting the Product\mathit{Product} column and clicking the Discrete radio button. This changes the color of the Product\mathit{Product} column to red. BayesiaLab 11.9.1 already detects Purchase Intent\mathit{Purchase\ Intent} and Intensity\mathit{Intensity} as Discrete variables. Verify those types before continuing. The initial import has 47 Continuous and 2 Discrete variables; changing Product\mathit{Product} yields 46 Continuous and 3 Discrete variables.

Product set to Discrete: 46 continuous variables and 3 discrete variables
Click to Zoom
Data Selection and Missing Values Processing with the verified summary statistics for Fresh
Click to Zoom

The next step is the Discretization and Aggregation screen. Given the number of observations, it is appropriate to reduce the number of states of the ratings from the original 10 states (1-10) to a smaller number. All these variables measure satisfaction on the same scale, i.e., from 1 to 10. Following our earlier recommendations (see Discretization Intervals in Chapter 6), the best choice in this context is the Equal Distance discretization.

By clicking Select All Continuous, we highlight all to-be-discretized variables. Then, we choose the type of discretization to be applied, which is Equal Distance. Furthermore, given the number of observations, we choose 5 bins for the discretization.

Discretization and Aggregation with all continuous variables selected for Equal Distance discretization into five intervals
Click to Zoom

Clicking Finish finalizes the import process. Upon completion, the Open Report prompt asks whether we want to view the Import Report.

Open Report prompt after the verified import

As there is no uncertainty with regard to the outcome of the discretization, we decline and automatically obtain a fully unconnected network with 49 nodes.

Loading SVG...
Click to Zoom