This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
en:create:databank [16.01.2015 10:34] – admin | en:create:databank [21.04.2024 20:21] (current) – admin | ||
---|---|---|---|
Line 6: | Line 6: | ||
* Transfer values to subsequent questionnaires | * Transfer values to subsequent questionnaires | ||
* Manage data across multiple questionnaires (e.g. count quotas, rotate stimuli systematically) i.e. exchange data between questionnaires | * Manage data across multiple questionnaires (e.g. count quotas, rotate stimuli systematically) i.e. exchange data between questionnaires | ||
- | * Show personalized data (relay data in the questionnaire) using the participant key (authorization | + | * Show personalized data (relay data in the questionnaire) using the participant key (access |
* Preset customized input fields in the questionnaire (in combination with '' | * Preset customized input fields in the questionnaire (in combination with '' | ||
In addition to this, the question types [[: | In addition to this, the question types [[: | ||
- | The commands '' | + | The commands '' |
**Note:** Please note: when the project is exported, the data in the **Database for Contents** will __not__ be exported yet. When a project is archived, the data will be deleted rather than archived. Changing this is planned in the next version of the programme. | **Note:** Please note: when the project is exported, the data in the **Database for Contents** will __not__ be exported yet. When a project is archived, the data will be deleted rather than archived. Changing this is planned in the next version of the programme. | ||
Line 40: | Line 40: | ||
===== Import Data ===== | ===== Import Data ===== | ||
- | First of all, the data has to be stored in a table, e.g. in excel or Open Office | + | First of all, the data has to be stored in a table, e.g. in excel or Open Office |
* the first column must contain the key | * the first column must contain the key | ||
* the other columns contain the data | * the other columns contain the data | ||
Line 76: | Line 76: | ||
- | ===== Example 1: Extensive Test Material | + | ===== Download the Data ===== |
+ | |||
+ | You may update the " | ||
+ | |||
+ | **Special Features** -> **Database for Contents** -> Button " | ||
+ | |||
+ | |||
+ | ===== Examples of Use ===== | ||
+ | |||
+ | ==== Extensive Test Material ==== | ||
In a study, 500 newspaper articles written by different people should be assessed. The articles come from an electronic database and are already available in tabular form. In order to ensure that each article is assessed equally often, [[: | In a study, 500 newspaper articles written by different people should be assessed. The articles come from an electronic database and are already available in tabular form. In order to ensure that each article is assessed equally often, [[: | ||
Line 106: | Line 115: | ||
- | ===== Example 2: Exchange Data Between Two Questionnaires | + | ==== Exchange Data Between Two Questionnaires ==== |
It was asked in the pre-survey of a diary study which television station a person uses. In further enquiries during the diary study, the daily period of use for the respective station was prompted. For this purpose, only the stations that were selected in the pre-survey should be offered in a text input. | It was asked in the pre-survey of a diary study which television station a person uses. In further enquiries during the diary study, the daily period of use for the respective station was prompted. For this purpose, only the stations that were selected in the pre-survey should be offered in a text input. | ||
SoSci Survey' | SoSci Survey' | ||
+ | |||
+ | **Note:** If the e-mail address is only collected in the first questionnaire ([[: | ||
In the pre-survey, the television channels used are prompted in the multiple-choice " | In the pre-survey, the television channels used are prompted in the multiple-choice " | ||
Line 128: | Line 139: | ||
</ | </ | ||
+ | **Important: | ||
- | ===== Example 3: Relay Analysis | + | If you store a single value in the first questionnaire, |
+ | |||
+ | <code php> | ||
+ | $group | ||
+ | |||
+ | $key = ' | ||
+ | dbSet($key, $group); | ||
+ | </ | ||
+ | |||
+ | <code php> | ||
+ | $key = ' | ||
+ | $data = dbGet($key); | ||
+ | if ($data) { | ||
+ | $group = $data[0]; | ||
+ | // cache the value into an internal variable, | ||
+ | // to use the value later via value() (optional) | ||
+ | | ||
+ | } else { | ||
+ | // show error message that something went wrong | ||
+ | show(' | ||
+ | put(' | ||
+ | } | ||
+ | </ | ||
+ | |||
+ | The PHP code for the second questionnaire also provides for the case that no matching entry is found in the content database. | ||
+ | |||
+ | |||
+ | ==== Relay Analysis | ||
In a survey, participants have to fill in several lengthy scales. As a thank-you, they can look at an analysis of their results two weeks later. The analysis cannot be conducted live ('' | In a survey, participants have to fill in several lengthy scales. As a thank-you, they can look at an analysis of their results two weeks later. The analysis cannot be conducted live ('' | ||
Line 173: | Line 212: | ||
- | ===== Example 4: Relay A Priori Data ===== | + | ==== Relay A Priori Data ==== |
- | In a (non-anonymous) customer survey, some master data is already known -- however, it should be updated/ | + | In a (non-anonymous) customer survey, some master data is already known -- however, it should be updated/ |
A table is created with the code in the first column and the master data next to it. The table is saved as a CSV file and imported into the internal project database. | A table is created with the code in the first column and the master data next to it. The table is saved as a CSV file and imported into the internal project database. | ||
Line 183: | Line 222: | ||
|72KU635485UG|MSD-Media GbR|Korbinianstr.|17||| | |72KU635485UG|MSD-Media GbR|Korbinianstr.|17||| | ||
- | The code is transferred as the authorization | + | The code is transferred as the access |
The text input " | The text input " | ||
Line 200: | Line 239: | ||
question(' | question(' | ||
</ | </ | ||
+ | |||
+ | |||
+ | ==== Complement an Entry ==== | ||
+ | |||
+ | To add an entry to the database for content during the interview, it must be read out, added and then written again. | ||
+ | |||
+ | For example, under the key " | ||
+ | |||
+ | <code php> | ||
+ | $key = ' | ||
+ | // Reading data | ||
+ | $data = dbGet($key); | ||
+ | if ($data === false) { | ||
+ | // No data found - maybe show warning | ||
+ | $data = array(-8, -8, -8); // ... and initialize the data element | ||
+ | } | ||
+ | // Add the answer from PP01 | ||
+ | $data[3] = value(' | ||
+ | // save entry again | ||
+ | $data = dbSet($key, $data); | ||
+ | </ | ||
+ | |||
+ | |||
+ | ==== Restrict Selection Options Successively ==== | ||
+ | |||
+ | The content database can also be used to gradually narrow down long selection lists. In the following example, a district is to be selected first and then, in the next step, a station within the district. | ||
+ | |||
+ | For this purpose, a list is first created in the content database, which contains the city districts and the stations. It is important to assign suitable database keys. These must meet the following criteria: | ||
+ | |||
+ | - Districts and stations require a different prefix, which means that the keys must start with different letters, for example. In the example, the keys for districts start with " | ||
+ | - Stations belonging to a district must use the same additional code after the " | ||
+ | - It saves work to choose the answer code for the districts so that they match the prefixes of the station keys. So e.g. code 1 for district A and accordingly the prefixes " | ||
+ | |||
+ | The list for the import could look like the following: | ||
+ | |||
+ | < | ||
+ | S01 1 District A | ||
+ | S02 2 District B | ||
+ | S03 3 District C | ||
+ | ... | ||
+ | S50 50 District Zeta | ||
+ | H0101 101 station " | ||
+ | H0102 102 station " | ||
+ | H0103 103 station " | ||
+ | ... | ||
+ | H5017 5015 station " | ||
+ | </ | ||
+ | |||
+ | Now two questions of type [[: | ||
+ | |||
+ | **Tip:** Instead of an extended selection, you can also use a [[: | ||
+ | |||
+ | If the preview of the questions corresponds to your desires (only with the stops still too many indicated), then it goes now and **Compose Questionnaire**. There you place the questions for the city districts (" | ||
+ | |||
+ | <code php> | ||
+ | // First read out the selected district | ||
+ | $district = value(' | ||
+ | // Then create the prefix for the matching stops | ||
+ | $prefix = ' | ||
+ | // Then show the question about the district with the appropriate options. | ||
+ | question(' | ||
+ | </ | ||
+ | |||
+ | The function '' | ||
+ | |||
+ | The dot ('' |