PsyTeachR / FAQ

#psyteachr help - Frequently Asked Questions
Other
0 stars 0 forks source link

recoding variables #6

Open dalejbarr opened 4 years ago

dalejbarr commented 4 years ago

see https://teams.microsoft.com/l/message/19:e88503c22ad3485e83d1759b9db4d3b3@thread.tacv2/1603453946582?tenantId=6e725c29-763a-4f50-81f2-2e254f0133c8&groupId=a3a7449f-0c8f-477b-bee2-3f9f009432cf&parentMessageId=1603453946582&teamName=Honours%20and%20PGT%202020%2F21&channelName=General%20data%20skills%20help&createdTime=1603453946582

students commonly need to change variables from numeric to categorical or vice versa. Talk about if_else(), case_when(), recode(), etc. Maybe copy from LDB's blog post on this

dalejbarr commented 3 years ago

And again https://teams.microsoft.com/l/message/19:e88503c22ad3485e83d1759b9db4d3b3@thread.tacv2/1623238154631?groupId=a3a7449f-0c8f-477b-bee2-3f9f009432cf

Reverse coding: (n+1) - x trick