PH.IPW | R Documentation |
IPW estimates of model parameters and accuracy parameters for Cox's proportional hazards (PH) model with perturbed counterparts.
PH.IPW( formula, data, id, case, control, m0, t0, weight.type = "HT", yes.match = FALSE, control.matching = list(Mdat = NULL, aM = NULL), control.accuracy = list(type = "FPR", u0 = 0.05), yes.ptb = FALSE, control.ptb = list(seed = 123, n.ptb = 500, CaseID = NULL) )
formula |
a formula object, with the response on the left of a |
data |
a |
id |
character, which is the variable name in the |
case |
character, which is the variable name in the |
control |
character, which is the variable name in the |
t0 |
a numerical value, which is the prediction time period, used for creating the binary outcome status: =1 if the event time is smaller than |
weight.type |
character which indicate which sampling weight to be used and whose value could be
|
yes.match |
logical indicating whether the controls are selected with or without matching; the default value is |
control.matching |
a list which includes two elements: |
control.accuracy |
a list which includes the arguments used in estimating the accuracy measures. It includes two elements: |
yes.ptb |
logical indicating if obtaining the perturbed counterparts of the IPW estimates, and the default value is |
control.ptb |
a list of elements that control the perturbation procedure. |
a list of two elements: estimates
and ptb
. estimates
is a list of IPW estimates of the model parameters (coef
) and accuracy parameters (acc
). If yes.ptb=TRUE
, ptb
is a list of the perturbed counterparts for the IPW estimates of the model parameters (coef
) and accuracy parameters (acc
); otherwise, ptb = NULL
.
data("myexample")
PH.IPW(formula=Surv(time,status)~marker1+marker2, data=myexample$data, id="id", case="case", control="control", m0=3,t0=1, weight.type = "HT", yes.match=T,control.matching=list(Mdat=myexample$Mdat,aM=myexample$aM), yes.ptb=TRUE,control.ptb=list(n.ptb=10,CaseID="CaseID"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.