Function to fit the naive overall population model to the data. This model is going to estimate the subgroup treatment effects with the overall population treatment effect.
naivepop(resp, trt, data, resptype = c("survival","binary"), status =NULL)
Arguments
resp: (string)
the response variable name.
trt: (string)
the treatment variable name. The treatment variable must be a factor with 2 levels where the first level is the control and the second one the treatment.
data: (data frame)
the data frame with the variables.
resptype: (string)
the type of data used. Can be "survival" or "binary".
status: (string)
only for "survival" resptype, the status variable name in survival data.