Difference between revisions of "ContingencyTable Command"

From GeoGebra Manual
Jump to: navigation, search
(forgot ; "|")
(command syntax: changed [ ] into ( ))
 
Line 1: Line 1:
 
<noinclude>{{Manual Page|version=5.0}}</noinclude>{{command|statistics}}
 
<noinclude>{{Manual Page|version=5.0}}</noinclude>{{command|statistics}}
;ContingencyTable[ <List of Text>, <List of Text> ]
+
;ContingencyTable( <List of Text>, <List of Text> )
 
:Draws a [[w:Contingency table| Contingency Table]] created from the two given lists. Unique values from the first list are used as row values in the table.  Unique values from the second list are used as column values in the table.   
 
:Draws a [[w:Contingency table| Contingency Table]] created from the two given lists. Unique values from the first list are used as row values in the table.  Unique values from the second list are used as column values in the table.   
  
;ContingencyTable[ <List of Text>, <List of Text>, <Options> ]
+
;ContingencyTable( <List of Text>, <List of Text>, <Options> )
 
:Draws a [[w:Contingency table| Contingency Table]] created from the two given lists as described above. The text ''Options'' controls the display of optional calculations within the table.  
 
:Draws a [[w:Contingency table| Contingency Table]] created from the two given lists as described above. The text ''Options'' controls the display of optional calculations within the table.  
  
Line 14: Line 14:
 
:* "=" = show results of a Chi Squared test    }}
 
:* "=" = show results of a Chi Squared test    }}
 
   
 
   
;ContingencyTable[ <List of Row Values>, <List of Column Values>, <Frequency Table> ]
+
;ContingencyTable( <List of Row Values>, <List of Column Values>, <Frequency Table> )
 
:Draws a [[w:Contingency table| Contingency Table]] using the given list of row values, column values and corresponding frequency table.  
 
:Draws a [[w:Contingency table| Contingency Table]] using the given list of row values, column values and corresponding frequency table.  
:{{example|1=<code><nowiki>ContingencyTable[ {"Males","Females"},{"Right-handed", "Left-handed"},{{43,9},{44,4}}]</nowiki></code> yields the corresponding Contingency Table.}}
+
:{{example|1=<code><nowiki>ContingencyTable({"Males","Females"},{"Right-handed", "Left-handed"},{{43,9},{44,4}})</nowiki></code> yields the corresponding Contingency Table.}}
  
;ContingencyTable[ <List of Row Values>, <List of Column Values> <Frequency Table>, <Options> ]
+
;ContingencyTable( <List of Row Values>, <List of Column Values> <Frequency Table>, <Options> )
 
:Draws a [[w:Contingency table| Contingency Table]] using the given list of row values, column values and corresponding frequency table. The text ''Options'' controls the display of optional calculations within the table as described above.
 
:Draws a [[w:Contingency table| Contingency Table]] using the given list of row values, column values and corresponding frequency table. The text ''Options'' controls the display of optional calculations within the table as described above.
:{{example|1=<code><nowiki>ContingencyTable[ {"Males","Females"},{"Right-handed", "Left-handed"},{{43,9},{44,4}},"_"]</nowiki></code> yields the corresponding Contingency Table showing the row percentages.}}
+
:{{example|1=<code><nowiki>ContingencyTable({"Males","Females"},{"Right-handed", "Left-handed"},{{43,9},{44,4}},"_")</nowiki></code> yields the corresponding Contingency Table showing the row percentages.}}

Latest revision as of 11:09, 3 October 2017


ContingencyTable( <List of Text>, <List of Text> )
Draws a Contingency Table created from the two given lists. Unique values from the first list are used as row values in the table. Unique values from the second list are used as column values in the table.
ContingencyTable( <List of Text>, <List of Text>, <Options> )
Draws a Contingency Table created from the two given lists as described above. The text Options controls the display of optional calculations within the table.
Note: Possible values for Options are "|", "_", "+", "e", "k", "=".
  • "|" = show column percentages
  • "_" = show row percentages
  • "+" = show total percentages
  • "e" = show expected counts
  • "k" = show Chi Squared contributions
  • "=" = show results of a Chi Squared test
ContingencyTable( <List of Row Values>, <List of Column Values>, <Frequency Table> )
Draws a Contingency Table using the given list of row values, column values and corresponding frequency table.
Example: ContingencyTable({"Males","Females"},{"Right-handed", "Left-handed"},{{43,9},{44,4}}) yields the corresponding Contingency Table.


ContingencyTable( <List of Row Values>, <List of Column Values> <Frequency Table>, <Options> )
Draws a Contingency Table using the given list of row values, column values and corresponding frequency table. The text Options controls the display of optional calculations within the table as described above.
Example: ContingencyTable({"Males","Females"},{"Right-handed", "Left-handed"},{{43,9},{44,4}},"_") yields the corresponding Contingency Table showing the row percentages.
© 2024 International GeoGebra Institute