This is the sixth in a series of blog posts designed as a DIY training course for using Displayr. It illustrates how to update analyses and reporting when you received a revised data file.
Opening the report
If you have already finished creating the document from the previous post Case Study: Visualizations we will keep using it in this post. Otherwise, click here, which will open up a copy of the document created in that earlier post. This will automatically be saved into your list of documents.
This report shows various simple and advanced analyses from an experiment. You can view a video of the original dashboard being created here.
We will start with failure, by "accidentally" updating using an inappropriate data file:
- If you have not already down so, download the raw data file Shopping.sav data file from Case Study: Analyzing Survey Data.
- In the Data tree, click on the data file name (President - 200 Case.sav). See below.
- Press Update in the Object Inspector.
- Select My Computer and find the data file you wish to use for updating (i.e., the Shopping.sav file we downloaded earlier). Then press Open.
You will now see a sometimes-terrifying screen called the Data Difference Warning. In the middle of the screen you can see all the problems with the data as they relate to missing variables. If you look at the Pages tree and the Data tree you will see further errors.
- Press Accept.
- Click the Undo arrow at the top-left of the screen.
Now, repeat the process again, but this time do so using this data file. Your screen will initially look like the one below.
There are a few key things to note about this:
- Go to the Demographics page (in the Pages Tree). It has updated. Note the base size at the bottom has gone from 200 to 300. If you were to compare all the other numbers in this chart, you would see they have updated as well.
- Note that two of the pages (in the Pages Tree) are in red. These are the pages that rely on the MaxDiff analysis. It is still running.
- The last of the pages, Model, has a spinning icon next to it indicating that it is still computing its result. As when we first set up this analysis, it will take a number of minutes to finish computing.
- In the Data Tree we can also see that the variable Preference shares from max.diff is red. This is because it is also waiting for the MaxDiff analysis to update itself.
Updating with a revised data file structure
The two updating examples we have just looked at represent worst and best-cases respectively. There is a middle ground where a revised data file contains some changes to structures, such as:
- Variables have been added.
- Some existing variables have been removed.
- Metadata (e.g., labels, values) have been changed.
When this occurs, you can import the revised data into Displayr and you will be given a series of warnings and errors, and you can resolve these one-by-one until any problems are dealt with. If you wish to experience this, try updating again with this data file.
Sometimes it takes a bit of experience to resolve with data updating problems, so please reach out to email@example.com if you have any problems.