User Tools

Site Tools


multicolinearity

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Next revisionBoth sides next revision
multicolinearity [2018/12/26 02:40] hkimscilmulticolinearity [2018/12/26 02:43] – old revision restored (2018/12/26 02:08) hkimscil
Line 24: Line 24:
  $ sector    : int  1 1 1 0 0 0 0 0 1 0 ...  $ sector    : int  1 1 1 0 0 0 0 0 1 0 ...
  $ marr      : int  1 1 0 0 1 0 0 0 1 0 ...  $ marr      : int  1 1 0 0 1 0 0 0 1 0 ...
 +> head(cps)
 > head(cps) > head(cps)
   education south sex experience union  wage age race occupation sector marr   education south sex experience union  wage age race occupation sector marr
Line 34: Line 34:
 6        13                9     1 13.07  28    3          6      0    0 6        13                9     1 13.07  28    3          6      0    0
 </code> </code>
- 
-<code> 
-> cps$sex <- factor(cps$sex) 
-> cps$union <- factor(cps$union) 
-> cps$race <- factor(cps$race) 
-> cps$sector <- factor(cps$sector) 
-> cps$occupation <- factor(cps$occupation) 
-> cps$marr <- factor(cps$marr) 
-> str(cps) 
-'data.frame': 534 obs. of  11 variables: 
- $ education : int  8 9 12 12 12 13 10 12 16 12 ... 
- $ south     : int  0 0 0 0 0 0 1 0 0 0 ... 
- $ sex       : Factor w/ 2 levels "0","1": 2 2 1 1 1 1 1 1 1 1 ... 
- $ experience: int  21 42 1 4 17 9 27 9 11 9 ... 
- $ union     : Factor w/ 2 levels "0","1": 1 1 1 1 1 2 1 1 1 1 ... 
- $ wage      : num  5.1 4.95 6.67 4 7.5 ... 
- $ age       : int  35 57 19 22 35 28 43 27 33 27 ... 
- $ race      : Factor w/ 3 levels "1","2","3": 2 3 3 3 3 3 3 3 3 3 ... 
- $ occupation: Factor w/ 6 levels "1","2","3","4",..: 6 6 6 6 6 6 6 6 6 6 ... 
- $ sector    : Factor w/ 3 levels "0","1","2": 2 2 2 1 1 1 1 1 2 1 ... 
- $ marr      : Factor w/ 2 levels "0","1": 2 2 1 1 2 1 1 1 2 1 ... 
-> </code> 
- 
  
 <code> <code>
multicolinearity.txt · Last modified: 2018/12/26 02:49 by hkimscil

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki