plot SPF BinCont | R Documentation |
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.
## S3 method for class 'SPF.BinCont'
plot(x, Type="Frequency", Col="grey", Main, Xlab=TRUE, ...)
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. |
Wim Van der Elst & Ariel Alonso
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.
SPF.BinCont
## 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.