| DPI_curve | R Documentation |
DPI curve analysis across multiple random covariates.
DPI_curve(
model,
x,
y,
data = NULL,
k.covs = 1:10,
n.sim = 1000,
alpha = 0.05,
bonf = FALSE,
pseudoBF = FALSE,
seed = NULL,
progress,
file = NULL,
width = 6,
height = 4,
dpi = 500
)
model |
Model object ( |
x |
Independent (predictor) variable. |
y |
Dependent (outcome) variable. |
data |
[Optional] Defaults to |
k.covs |
An integer vector of number of random covariates (simulating potential omitted variables) added to each simulation sample. Defaults to |
n.sim |
Number of simulation samples. Defaults to |
alpha |
Significance level for computing the
|
bonf |
Bonferroni correction to control for false positive rates:
|
pseudoBF |
Use normalized pseudo Bayes Factors Defaults to |
seed |
Random seed for replicable results. Defaults to |
progress |
Show progress bar. Defaults to |
file |
File name of saved plot ( |
width, height |
Width and height (in inches) of saved plot. Defaults to |
dpi |
Dots per inch (figure resolution). Defaults to |
Return a data.frame of DPI curve results.
S3method.dpi
DPI()
DPI_dag()
BNs_dag()
cor_net()
p_to_bf()
model = lm(Ozone ~ ., data=airquality)
DPIs = DPI_curve(model, x="Solar.R", y="Ozone", seed=1)
plot(DPIs) # ggplot object
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.