Performs Bayesian's Gaussian process regression or Bayesian additive regression tree for data with adaptive treatment(s).
dynamicGP(
datafile = NULL,
dataref = NULL,
method = "BART",
stg1.outcome,
stg1.treatment,
stg1.x.explanatory = NULL,
stg1.x.confounding = NULL,
stg1.tr.hte = NULL,
stg1.tr.values = NULL,
stg1.tr.type = "Discrete",
stg1.time,
stg1.time.value = NULL,
stg1.outcome.type = "Continuous",
stg1.outcome.bound_censor = "neither",
stg1.outcome.lb = NULL,
stg1.outcome.ub = NULL,
stg1.outcome.censor.lv = NULL,
stg1.outcome.censor.uv = NULL,
stg1.outcome.censor.yn = NULL,
stg1.outcome.link = "identity",
stg1.c.margin = NULL,
stg2.outcome,
stg2.treatment,
stg2.x.explanatory = NULL,
stg2.x.confounding = NULL,
stg2.tr1.hte = NULL,
stg2.tr2.hte = NULL,
stg2.tr.values = NULL,
stg2.tr.type = "Discrete",
stg2.time,
stg2.time.value = NULL,
stg2.outcome.type = "Continuous",
stg2.outcome.bound_censor = "neither",
stg2.outcome.lb = NULL,
stg2.outcome.ub = NULL,
stg2.outcome.censor.lv = NULL,
stg2.outcome.censor.uv = NULL,
stg2.outcome.censor.yn = NULL,
stg2.outcome.link = "identity",
stg2.c.margin = NULL,
burn.num = 500,
mcmc.num = 500,
x.categorical = NULL,
mi.datafile = NULL,
mi.dataref = NULL,
sheet = NULL,
mi.sheet = NULL,
seed = 5000,
token = NULL,
use.cache = NULL
)jobid
File to upload (.csv or .xls)
Reference to already uploaded file.
The method to be used. "GP" for GP method and "BART" for BART method. The default value is "BART".
The name of the intermediate outcome variable for stage 1.
The name of the treatment variable for stage 1.
A vector of the name of the explanatory variables for stage 1.
A vector of the name of the confounding variables for stage 1.
An optional vector specifying categorical variables which may have heterogeneous treatment effect with the treatment variable for stage 1.
User-defined values for the calculation of ATE if the treatment variable is continuous for stage 1.
The type of treatment at stage 1. "Continuous" for continuous treatment and "Discrete" for categorical treatment. The default value is "Discrete".
Time variable.
Pre-specified time exposure.
Intermediate outcome type ("Continuous" or "Discrete") for stage 1.
The default value is "neither". "neither" if the intermediate outcome is not bounded or censored. "bounded" if the intermediate outcome is bounded. "censored" if the intermediate outcome is censored.
Stage 1 lower bound if the intermediate outcome is bounded.
Stage 1 upper bound if the intermediate outcome is bounded.
lower variable of censored interval if the intermediate outcome is censored.
upper variable of censored interval if the intermediate outcome is censored.
Censoring variable if the intermediate outcome is censored.
function for the intermediate outcome; the default value is ``identity''. "identity" if no transformation needed. "log" for log transformation. "logit" for logit transformation.
An optional vector of user-defined values of c for PrTE at stage 1.
The name of the outcome variable for stage 2.
The name of the treatment variable for stage 2.
A vector of the name of the explanatory variables for stage 2.
A vector of the name of the confounding variables for stage 2.
At stage 2, an optional vector specifying categorical variables which may have heterogeneous treatment effect with the stage 1 treatment variable
At stage 2, an optional vector specifying categorical variables which may have heterogeneous treatment effect with the stage 2 treatment variable
User-defined values for the calculation of ATE if the treatment variable is continuous for stage 2.
The type of treatment at stage 2. "Continuous" for continuous treatment and "Discrete" for categorical treatment. The default value is "Discrete".
Time variable.
Pre-specified time exposure.
Outcome type ("Continuous" or "Discrete") for stage 2.
The default value is "neither". "neither" if the intermediate outcome is not bounded or censored. "bounded" if the intermediate outcome is bounded. "censored" if the intermediate outcome is censored.
Stage 2 lower bound if the outcome is bounded.
Stage 2 upper bound if the outcome is bounded.
lower variable of censored interval if the outcome is censored.
upper variable of censored interval if the outcome is censored.
Censoring variable if the outcome is censored.
function for the outcome; the default value is ``identity''. "identity" if no transformation needed. "log" for log transformation. "logit" for logit transformation.
An optional vector of user-defined values of c for PrTE at stage 2.
numeric; the number of MCMC 'burn-in' samples, i.e. number of MCMC to be discarded. The default value is 500.
numeric; the number of MCMC samples after 'burn-in'. The default value is 500.
A vector of the name of categorical variables in data.
File to upload (.csv or .xls) that contains the imputed data in the model.
Reference to already uploaded file that contains the imputed data in the model.
If datafile or dataref points to an Excel file this variable specifies which sheet to load.
If mi.datafile or mi.dataurl points to an Excel file this variable specifies which sheet to load.
Sets the seed. The default value is 5000.
Authentication token.
Use cached results (default True).