You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If a logical treatment vector (TRUE if treated, FALSE if untreated) is converted to a factor (as.factor(treatment_vector)), the vector is internally converted to floating point via as.numeric which transforms the treatment into 2 if treated and 1 if untreated.