I should develop a model to measure the relationship between insecurity and authoritarianism. The problem is that in my code-book the item is as follow: are security concerns increased?
fallen a lot
fallen a little
stayed the same
increased a little
increased a lot
Now I want to codify them into numbers as follow
fallen a lot=-2
fallen a little=-1
stayed the same=0
increased a little=1
increased a lot=2
don't know = NA
v22g is the interested column
dput(df2$v22g[1:30])
c("fallen a lot", "fallen a little", "stayed the same", "increased little",
"increased a lot", "fallen a lot", "fallen a little", "stayed the same",
"increased little", "increased a lot", "fallen a lot", "fallen a little",
"stayed the same", "increased little", "increased a lot", "fallen a lot",
"fallen a little", "stayed the same", "increased little", "increased a lot",
"fallen a lot", "fallen a little", "stayed the same", "increased little",
"increased a lot", "fallen a lot", "fallen a little", "stayed the same",
"increased little", "increased a lot")
someone can tell me how can I do this? thank u