Description Usage Arguments Author(s) References See Also Examples
View source: R/CausalPCA.ContCont.R
This function provides a diagram that depicts the estimable correlations ρ(_{T_0, S}) and ρ(_{T_1, S}), and median of the correlation ρ(_{T_0, T_1}) for a specified range of values of the predictive causal association (PCA; ρ_{ψ}).
1 2 | CausalPCA.ContCont(x, Min=-1, Max=1, Cex.Letters=3, Cex.Corrs=2,
Lines.Rel.Width=TRUE, Col.Pos.Neg=TRUE)
|
x |
An object of class |
Min |
The minimum values of the PCA that should be considered. Default=-1. |
Max |
The maximum values of the PCA that should be considered. Default=1. |
Cex.Letters |
The size of the symbols for S, T_{0}, and T_{1} in the diagram. Default=3. |
Cex.Corrs |
The size of the text depicting the (median) correlations in the diagram. Default=2. |
Lines.Rel.Width |
Logical. When |
Col.Pos.Neg |
Logical. When |
Wim Van der Elst, Ariel Alonso, & Geert Molenberghs
Alonso, A., Van der Elst, W., & Molenberghs, G. (submitted). Validating predictors of therapeutic success: a causal inference approach.
PCA.ContCont
1 2 3 4 5 6 7 8 9 10 11 | # Generate the vector of PCA.ContCont values when rho_T0S=.3, rho_T1S=.9,
# sigma_T0T0=2, sigma_T1T1=2,sigma_SS=2, and the grid of values {-1, -.99,
# ..., 1} is considered for the correlations between T0 and T1:
PCA <- PCA.ContCont(T0S=.3, T1S=.9, T0T0=2, T1T1=2, SS=2,
T0T1=seq(-1, 1, by=.01))
# Obtain causal diagram for PCA score range [-1; 1]:
CausalPCA.ContCont(PCA, Min=-1, Max=1)
# Obtain causal diagram for PCA score range [0.5; 1]:
CausalPCA.ContCont(PCA, Min=0.5, Max=1)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.