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 menu with Open Data Source open and Text File highlighted Data Import step 1, Define Data Structure, with Semicolon as the separator and the perfume ratings previewed Data Import step 2 as imported by default: 1,321 rows, 48 variables continuous and one discrete

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. We also define Purchase Intent\mathit{Purchase\ Intent} and Intensity\mathit{Intensity} as Discrete variables. Their number of states is suitable for our purposes.

Data Import step 2 after setting Product to Discrete, which raises the discrete count to three Data Import step 3 with a variable's summary statistics displayed over the data preview

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

Clicking Finish finalizes the import process. Upon completion, we are prompted whether we want to view the Import Report.

Display Report prompt asking whether to show the import report

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.

The imported network in the Graph Panel: 49 unconnected nodes, one per variable