More actions
jrfconvert import |
No edit summary |
||
(One intermediate revision by one other user not shown) | |||
Line 1: | Line 1: | ||
| |||
| |||
====The default axis set==== | ==== The default axis set ==== | ||
Since creating an axis set is quite a big job then, whenever you create a data cache specification, a default axis set will also be created for it. You can the later go in and modify this default axis set as explained in more detail further down. | Since creating an axis set is quite a big job then, whenever you create a data cache specification, a default axis set will also be created for it. You can the later go in and modify this default axis set as explained in more detail further down. | ||
First have a look at the logic of how a default axis set is created. | First have a look at the logic of how a default axis set is created. | ||
For each column in the column list of the data cache specification of the types question, group and sample-rule, the logic for creating its corresponding default axis is stated as follow: | |||
{| width="1029" cellspacing="0" cellpadding="2" border="1" style="border-collapse:collapse; border:1px solid #010101" class="tableintopic" | |||
|- align="left" valign="top" | |||
| width="171" bgcolor="#C0C0C0" style="border:1px solid #010101;" | | |||
'''Column type'''<br>'''(+question type)''' | |||
| width="171" bgcolor="#C0C0C0" style="border:1px solid #010101;" | | |||
'''Name''' | |||
| width="171" bgcolor="#C0C0C0" style="border:1px solid #010101;" | | |||
'''Text''' | |||
| width="171" bgcolor="#C0C0C0" style="border:1px solid #010101;" | | |||
'''Math-base''' | |||
| width="171" bgcolor="#C0C0C0" style="border:1px solid #010101;" | | |||
'''Pct-base''' | |||
| width="171" bgcolor="#C0C0C0" style="border:1px solid #010101;" | | |||
'''Options''' | |||
|- align="left" valign="top" | |||
| width="171" style="border:1px solid #010101;" | | |||
Question - Single | |||
| width="171" style="border:1px solid #010101;" | | |||
Same as data cache column name | |||
| width="171" style="border:1px solid #010101;" | | |||
The corresponding question’s text in the default language | |||
| width="171" style="border:1px solid #010101;" | | |||
Same as data cache column name | |||
| width="171" style="border:1px solid #010101;" | | |||
Column_name != empty | |||
| width="171" style="border:1px solid #010101;" | | |||
For each answer option, create a default axis option whose name is the answer option’s text, value is if the data cache column name equals to the answer option’s value | |||
Ex: Gender == [1] | |||
|- align="left" valign="top" | |- align="left" valign="top" | ||
| style="border: 1px solid #010101 | | width="171" style="border:1px solid #010101;" | | ||
Question - Multi | Question - Multi | ||
| style="border: 1px solid #010101 | |||
| width="171" style="border:1px solid #010101;" | | |||
Same as data cache column name | Same as data cache column name | ||
| style="border: 1px solid #010101 | |||
| width="171" style="border:1px solid #010101;" | | |||
The corresponding question’s text in the default language | The corresponding question’s text in the default language | ||
| style="border: 1px solid #010101 | |||
| width="171" style="border:1px solid #010101;" | | |||
Same as data cache column name | Same as data cache column name | ||
| style="border: 1px solid #010101 | |||
Column_name != empty | | width="171" style="border:1px solid #010101;" | | ||
| style="border: 1px solid #010101 | Column_name != empty | ||
| width="171" style="border:1px solid #010101;" | | |||
For each answer option, create a default axis option whose name is the answer option’s text, value is if the data cache column name equals to the answer option’s value | For each answer option, create a default axis option whose name is the answer option’s text, value is if the data cache column name equals to the answer option’s value | ||
Ex: Hobby == [1] | Ex: Hobby == [1] | ||
|- align="left" valign="top" | |- align="left" valign="top" | ||
| style="border: 1px solid #010101 | | width="171" style="border:1px solid #010101;" | | ||
Question - MultiGrid | Question - MultiGrid | ||
| style="border: 1px solid #010101 | |||
| width="171" style="border:1px solid #010101;" | | |||
Same as data cache column name | Same as data cache column name | ||
| style="border: 1px solid #010101 | |||
| width="171" style="border:1px solid #010101;" | | |||
The question’s text concatenated with the sub question’s text in the default language | The question’s text concatenated with the sub question’s text in the default language | ||
| style="border: 1px solid #010101 | |||
| width="171" style="border:1px solid #010101;" | | |||
Same as data cache column name | Same as data cache column name | ||
| style="border: 1px solid #010101 | |||
Column_name != empty | | width="171" style="border:1px solid #010101;" | | ||
| style="border: 1px solid #010101 | Column_name != empty | ||
| width="171" style="border:1px solid #010101;" | | |||
For each answer option, create a default axis option whose name is the answer option’s text, value is if the data cache column name equals to the answer option’s value | For each answer option, create a default axis option whose name is the answer option’s text, value is if the data cache column name equals to the answer option’s value | ||
Ex: Problem_SQ_1 == [1] | Ex: Problem_SQ_1 == [1] | ||
|- align="left" valign="top" | |- align="left" valign="top" | ||
| style="border: 1px solid #010101 | | width="171" style="border:1px solid #010101;" | | ||
Question - SingleGrid | Question - SingleGrid | ||
| style="border: 1px solid #010101 | |||
| width="171" style="border:1px solid #010101;" | | |||
Same as data cache column name | Same as data cache column name | ||
| style="border: 1px solid #010101 | |||
| width="171" style="border:1px solid #010101;" | | |||
The question’s text concatenated with the sub question’s text in the default language | The question’s text concatenated with the sub question’s text in the default language | ||
| style="border: 1px solid #010101 | |||
| width="171" style="border:1px solid #010101;" | | |||
Same as data cache column name | Same as data cache column name | ||
| style="border: 1px solid #010101 | |||
Column_name != empty | | width="171" style="border:1px solid #010101;" | | ||
| style="border: 1px solid #010101 | Column_name != empty | ||
| width="171" style="border:1px solid #010101;" | | |||
For each answer option, create a default axis option whose name is the answer option’s text, value is if the data cache column name equals to the answer option’s value | For each answer option, create a default axis option whose name is the answer option’s text, value is if the data cache column name equals to the answer option’s value | ||
Ex: Q_SQ_1 == [1] | Ex: Q_SQ_1 == [1] | ||
|- align="left" valign="top" | |- align="left" valign="top" | ||
| style="border: 1px solid #010101 | | width="171" style="border:1px solid #010101;" | | ||
Question - Scale | Question - Scale | ||
| style="border: 1px solid #010101 | |||
| width="171" style="border:1px solid #010101;" | | |||
Same as data cache column name | Same as data cache column name | ||
| style="border: 1px solid #010101 | |||
| width="171" style="border:1px solid #010101;" | | |||
Same as data cache column name | Same as data cache column name | ||
| style="border: 1px solid #010101 | |||
| width="171" style="border:1px solid #010101;" | | |||
Same as data cache column name | Same as data cache column name | ||
| style="border: 1px solid #010101 | |||
Column_name != empty | | width="171" style="border:1px solid #010101;" | | ||
| style="border: 1px solid #010101 | Column_name != empty | ||
| width="171" style="border:1px solid #010101;" | | |||
| |||
|- align="left" valign="top" | |- align="left" valign="top" | ||
| style="border: 1px solid #010101 | | width="171" style="border:1px solid #010101;" | | ||
Question - ScaleGrid | Question - ScaleGrid | ||
| style="border: 1px solid #010101 | |||
| width="171" style="border:1px solid #010101;" | | |||
Same as data cache column name | Same as data cache column name | ||
| style="border: 1px solid #010101 | |||
| width="171" style="border:1px solid #010101;" | | |||
Same as data cache column name | Same as data cache column name | ||
| style="border: 1px solid #010101 | |||
| width="171" style="border:1px solid #010101;" | | |||
Same as data cache column name | Same as data cache column name | ||
| style="border: 1px solid #010101 | |||
Column_name != empty | | width="171" style="border:1px solid #010101;" | | ||
| style="border: 1px solid #010101 | Column_name != empty | ||
| width="171" style="border:1px solid #010101;" | | |||
| |||
|- align="left" valign="top" | |- align="left" valign="top" | ||
| style="border: 1px solid #010101 | | width="171" style="border:1px solid #010101;" | | ||
Question - Number | Question - Number | ||
| style="border: 1px solid #010101 | |||
| width="171" style="border:1px solid #010101;" | | |||
Same as data cache column name | Same as data cache column name | ||
| style="border: 1px solid #010101 | |||
| width="171" style="border:1px solid #010101;" | | |||
Same as data cache column name | Same as data cache column name | ||
| style="border: 1px solid #010101 | |||
| width="171" style="border:1px solid #010101;" | | |||
Same as data cache column name | Same as data cache column name | ||
| style="border: 1px solid #010101 | |||
Column_name != empty | | width="171" style="border:1px solid #010101;" | | ||
| style="border: 1px solid #010101 | Column_name != empty | ||
| width="171" style="border:1px solid #010101;" | | |||
| |||
|- align="left" valign="top" | |- align="left" valign="top" | ||
| style="border: 1px solid #010101 | | width="171" style="border:1px solid #010101;" | | ||
Group (only one is generated for ALL sample columns in the data cache where each sample column gets an axis option in the axis set) | Group (only one is generated for ALL sample columns in the data cache where each sample column gets an axis option in the axis set) | ||
| style="border: 1px solid #010101 | |||
| width="171" style="border:1px solid #010101;" | | |||
“Groups” | “Groups” | ||
| style="border: 1px solid #010101 | |||
| width="171" style="border:1px solid #010101;" | | |||
“Groups” | “Groups” | ||
| style="border: 1px solid #010101 | |||
| width="171" style="border:1px solid #010101;" | | |||
First group column’s name in data cache | First group column’s name in data cache | ||
| style="border: 1px solid #010101 | |||
| width="171" style="border:1px solid #010101;" | | |||
First group column’s name in data cache | First group column’s name in data cache | ||
| style="border: 1px solid #010101 | |||
| width="171" style="border:1px solid #010101;" | | |||
For each group column in the data cache one default axis option will be generated with name of group column and value “Column_Name” (meaning; summarize all rows in data table where user belongs to this group) | For each group column in the data cache one default axis option will be generated with name of group column and value “Column_Name” (meaning; summarize all rows in data table where user belongs to this group) | ||
|- align="left" valign="top" | |- align="left" valign="top" | ||
| style="border: 1px solid #010101 | | width="171" style="border:1px solid #010101;" | | ||
Sample | Sample | ||
(only one is generated for ALL sample columns in the data cache where each sample column gets an axis option in the axis set) | (only one is generated for ALL sample columns in the data cache where each sample column gets an axis option in the axis set) | ||
| style="border: 1px solid #010101 | |||
| width="171" style="border:1px solid #010101;" | | |||
“Samples” | “Samples” | ||
| style="border: 1px solid #010101 | |||
| width="171" style="border:1px solid #010101;" | | |||
“Samples” | “Samples” | ||
| style="border: 1px solid #010101 | |||
| width="171" style="border:1px solid #010101;" | | |||
First samples column’s name in data cache | First samples column’s name in data cache | ||
| style="border: 1px solid #010101 | |||
| width="171" style="border:1px solid #010101;" | | |||
First samples column’s name in data cache | First samples column’s name in data cache | ||
| style="border: 1px solid #010101 | |||
| width="171" style="border:1px solid #010101;" | | |||
For each sample column in the data cache one default axis option will be generated with name of sample column and value “Column_Name” (meaning; summarize all rows in data table where user belongs to this sample) | For each sample column in the data cache one default axis option will be generated with name of sample column and value “Column_Name” (meaning; summarize all rows in data table where user belongs to this sample) | ||
Not stated here is math-base-modifier which by default will always be null (not modification of math-base done). | |} | ||
Not stated here is math-base-modifier which by default will always be null (not modification of math-base done). | |||
[[Category:The_axis_set]] |
Latest revision as of 03:28, 3 January 2012
The default axis set
Since creating an axis set is quite a big job then, whenever you create a data cache specification, a default axis set will also be created for it. You can the later go in and modify this default axis set as explained in more detail further down.
First have a look at the logic of how a default axis set is created.
For each column in the column list of the data cache specification of the types question, group and sample-rule, the logic for creating its corresponding default axis is stated as follow:
Column type |
Name |
Text |
Math-base |
Pct-base |
Options |
Question - Single |
Same as data cache column name |
The corresponding question’s text in the default language |
Same as data cache column name |
Column_name != empty |
For each answer option, create a default axis option whose name is the answer option’s text, value is if the data cache column name equals to the answer option’s value Ex: Gender == [1] |
Question - Multi |
Same as data cache column name |
The corresponding question’s text in the default language |
Same as data cache column name |
Column_name != empty |
For each answer option, create a default axis option whose name is the answer option’s text, value is if the data cache column name equals to the answer option’s value Ex: Hobby == [1] |
Question - MultiGrid |
Same as data cache column name |
The question’s text concatenated with the sub question’s text in the default language |
Same as data cache column name |
Column_name != empty |
For each answer option, create a default axis option whose name is the answer option’s text, value is if the data cache column name equals to the answer option’s value Ex: Problem_SQ_1 == [1] |
Question - SingleGrid |
Same as data cache column name |
The question’s text concatenated with the sub question’s text in the default language |
Same as data cache column name |
Column_name != empty |
For each answer option, create a default axis option whose name is the answer option’s text, value is if the data cache column name equals to the answer option’s value Ex: Q_SQ_1 == [1] |
Question - Scale |
Same as data cache column name |
Same as data cache column name |
Same as data cache column name |
Column_name != empty |
|
Question - ScaleGrid |
Same as data cache column name |
Same as data cache column name |
Same as data cache column name |
Column_name != empty |
|
Question - Number |
Same as data cache column name |
Same as data cache column name |
Same as data cache column name |
Column_name != empty |
|
Group (only one is generated for ALL sample columns in the data cache where each sample column gets an axis option in the axis set) |
“Groups” |
“Groups” |
First group column’s name in data cache |
First group column’s name in data cache |
For each group column in the data cache one default axis option will be generated with name of group column and value “Column_Name” (meaning; summarize all rows in data table where user belongs to this group) |
Sample (only one is generated for ALL sample columns in the data cache where each sample column gets an axis option in the axis set) |
“Samples” |
“Samples” |
First samples column’s name in data cache |
First samples column’s name in data cache |
For each sample column in the data cache one default axis option will be generated with name of sample column and value “Column_Name” (meaning; summarize all rows in data table where user belongs to this sample) |
Not stated here is math-base-modifier which by default will always be null (not modification of math-base done).