Ignore:
Timestamp:
02/06/12 18:18:17 (2 years ago)
Author:
Miha Stajdohar <miha.stajdohar@…>
Branch:
default
rebase_source:
0aca606515175cb86b8ae35e52fca9fbffdba0c5
Message:

Changed data set path.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • docs/reference/rst/code/correspondence.py

    r9372 r9797  
    77from Orange.statistics import contingency 
    88 
    9 data = Orange.data.Table("../../../../doc/datasets/smokers_ct.tab") 
     9data = Orange.data.Table("smokers_ct.tab") 
    1010staff = data.domain["Staff group"] 
    1111smoking = data.domain["Smoking category"] 
    1212 
    1313# Compute the contingency 
    14 cont = contingency.VarVar(staff, smoking, data)  
     14cont = contingency.VarVar(staff, smoking, data) 
    1515 
    1616c = correspondence.CA(cont, staff.values, smoking.values) 
     
    1818print "Row profiles" 
    1919print c.row_profiles() 
    20 print  
     20print 
    2121print "Column profiles" 
    2222print c.column_profiles() 
     
    3131print "Principal row coordinates:" 
    3232print c.row_factors() 
    33 print  
     33print 
    3434print "Decomposition Of Inertia:" 
    3535print c.column_inertia() 
Note: See TracChangeset for help on using the changeset viewer.