2022년 11월 12일 토요일

ch.41 Reorder factor levels

 easier R than SPSS with Rcmdr : Contents

ch.41 Reorder factor levels


Let’s set the order in a nominal variable.

 

Specify one variable and create a name for the new variable.

Specifies the order to give to the new variable. Unless it is a special case, the order of the alphabetical order is usually ranked. This feature can be used when you need to be artificially given a ranking. This feature can be used when dealing with dummy variables, such as logistic regression or Cox regression. This is because the first ranking will be the reference.

 

The ranking is internal, so there is no outward change.

 



easier R than SPSS with Rcmdr : Contents

=================================================

  • R data visualization book 2
https://tinyurl.com/R-plot-II-2  simple variables
https://tinyurl.com/R-plot-II-3-4   many variables / map
https://tinyurl.com/R-plot-II-5-6   time related / statistics related
https://tinyurl.com/R-plot-II-7-8   others / reactive chart 
 

 

 

 

댓글 없음:

댓글 쓰기