powered by
Create a new variable which is true if all of the variables in a list of variables are true.
var_all(newvr, vrs)
Survey object
name of the new variable to be created
vector of logical variables
Other variables: var_any(), var_case(), var_collapse(), var_copy(), var_cross(), var_cut(), var_not()
var_any()
var_case()
var_collapse()
var_copy()
var_cross()
var_cut()
var_not()
set_survey(namcs2019sv) var_all("Medicare and Medicaid", c("PAYMCARE", "PAYMCAID")) tab("Medicare and Medicaid")
Run the code above in your browser using DataLab