plot SPF BinCont {Surrogate} | R Documentation |
Plots the surrogate predictive function (SPF) in the binary-continuous setting.
Description
Plots the surrogate predictive function (SPF) based on sensitivity-analyis, i.e., P(\Delta T | \Delta S \in I[ab])
, in the setting where S
is continuous and T
is a binary endpoint.
Usage
## S3 method for class 'SPF.BinCont'
plot(x, Type="Frequency", Col="grey", Main, Xlab=TRUE, ...)
Arguments
x |
A fitted object of class |
Type |
The type of plot that is requested. The argument |
Col |
The color of the bins or lines when histograms or density plots are requested. Default |
Main |
The title of the plot. |
Xlab |
Logical. Should labels on the X-axis be shown? Default |
... |
Arguments to be passed to the plot, histogram, ... functions. |
Author(s)
Wim Van der Elst & Ariel Alonso
References
Alonso, A., Van der Elst, W., Molenberghs, G., & Verbeke, G. (2017). Assessing the predictive value of a continuous surogate for a binary true endpoint based on causal inference.
See Also
Examples
## Not run: # time consuming code part
data(Schizo_BinCont)
# Use ICA.BinCont to examine surrogacy
Result_BinCont <- ICA.BinCont(M = 1000, Dataset = Schizo_BinCont,
Surr = PANSS, True = CGI_Bin, Treat=Treat, Diff.Sigma=TRUE)
# Obtain SPF
Fit <- SPF.BinCont(x=Result_BinCont, a = -30, b = -3)
# examine results
summary(Fit1)
plot(Fit1)
plot(Fit1, Type="Most.Likely.DeltaT")
## End(Not run)