I have a simple logistical regression like
logit(p[i]) <- b0 + b1*x[i]
but data for the p[i] is given as "yes", "no". How to encode ("yes"/"no") to (1,0) ?
e.g. smt like this
logit(encode(p[i])) <- b0 + b1*x[i]
I have a simple logistical regression like
logit(p[i]) <- b0 + b1*x[i]
but data for the p[i] is given as "yes", "no". How to encode ("yes"/"no") to (1,0) ?
e.g. smt like this
logit(encode(p[i])) <- b0 + b1*x[i]
Copyright © 2021 Jogjafile Inc.
Try the old fashion way! I am assuming that p and x are columns of data that I combine in a dataframe named df.