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
This allows multiple subgroups to be specified, separated by a dash. For example "age_group-sex".
If more than one subgroup is specified, analyses will be multiplicatively stratified, for example exposure * (subgroup1 * subgroup2), rather than exposure * (subgroup1 + subgroup2).
Copy file name to clipboardExpand all lines: README.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -50,7 +50,7 @@ follows:
50
50
[default: NULL] character. The name of an exposure variable in the input dataset. Must be binary or not given. All outputs will be stratified by this variable. This could be an exposure in the usual sense, or it could (mis)used to show different types of events (as long as the censoring structure is the same). If not specified, no stratification will occur.
51
51
52
52
--subgroups=SUBGROUP_VARNAME
53
-
[default: NULL] The name of a subgroup variable or list of variable names. If a subgroup variable is used, analyses will be stratified as exposure * ( subgroup1, subgroup2, ...). If not specified, no stratification will occur.
53
+
[default: NULL] The name(s) of the subgroup variable(s). If using multiple subgroup variables, delimit with a dash (-), for example 'age_group-sex'. If subgroup variables are used, analyses will be stratified as exposure * subgroup1 * subgroup2 * ... (multiplicatively, not additively). If not specified, no stratification will occur.
54
54
55
55
--origin_date=ORIGIN_VARNAME
56
56
[default: must be specified] The name of a date variable (or name of a variable that is coercable to a date eg 'YYYY-MM-DD') in the input dataset that represents the start of follow-up.
Copy file name to clipboardExpand all lines: analysis/km.R
+8-3Lines changed: 8 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -29,7 +29,7 @@ if(length(args)==0){
29
29
df_input<-"output/extract.arrow"
30
30
dir_output<-"output/km_estimates/"
31
31
exposure<- c("sex")
32
-
subgroups<- c("age_group")
32
+
subgroups<- c("age_group-region")
33
33
origin_date<-"first_vax_date"
34
34
event_date<-"second_vax_date"
35
35
censor_date<-character() # "censor_date"
@@ -40,7 +40,7 @@ if(length(args)==0){
40
40
smooth<- as.logical("FALSE")
41
41
smooth_df<- as.integer("4")
42
42
concise<- as.logical("TRUE")
43
-
plot<- as.logical("FALSE")
43
+
plot<- as.logical("TRUE")
44
44
contrast<- as.logical("TRUE")
45
45
filename_suffix<- as.character("")
46
46
} else {
@@ -58,7 +58,7 @@ if(length(args)==0){
58
58
help="[default: NULL] character. The name of an exposure variable in the input dataset. Must be binary or not given. All outputs will be stratified by this variable. This could be an exposure in the usual sense, or it could (mis)used to show different types of events (as long as the censoring structure is the same). If not specified, no stratification will occur.",
help="[default: NULL] The name of a subgroup variable or list of variable names. If a subgroup variable is used, analyses will be stratified as exposure * ( subgroup1, subgroup2, ...). If not specified, no stratification will occur.",
61
+
help="[default: NULL] The name(s) of the subgroup variable(s). If using multiple subgroup variables, delimit with a dash (-), for example 'age_group-sex'. If subgroup variables are used, analyses will be stratified as exposure * subgroup1 * subgroup2 * ... (multiplicatively, not additively). If not specified, no stratification will occur.",
62
62
metavar="subgroup_varname"),
63
63
make_option("--origin_date", type="character",
64
64
help="[default: must be specified] The name of a date variable (or name of a variable that is coercable to a date eg 'YYYY-MM-DD') in the input dataset that represents the start of follow-up.",
@@ -118,6 +118,11 @@ if(length(args)==0){
118
118
# the quasiquotation still works inside ggplot, transmute, etc
0 commit comments