Closed ntraut closed 4 years ago
Thanks for picking that up - I'll change the regex.
You should be able to set the parameter explicitly,sex.var = "sex_f31_0_0"
.
Let me know if that works for you.
Working for me, thanks.
Hard-coded demographic variable default arguments:
sex.var = "sex_f31_0_0",
age.var = "age_when_attended_assessment_centre_f21003_0_0"
socioeconomic.var = "townsend_deprivation_index_at_recruitment_f189_0_0"
ethnicity.var = "ethnic_background_f21000_0_0"
employment.var = "current_employment_status_f6142_0_0"
centre.var = "uk_biobank_assessment_centre_f54_0_0"
Hello, I get this error when I try to follow the example of the vignette:
I identified that the problem comes for the variable
sex.var
in the functionukb_context
. The patternsex.var = "^sex.*0_0"
matches several variables: