DPI_curve | R Documentation |
The DPI curve analysis.
DPI_curve(
model,
y,
x,
data = NULL,
k.covs = 1:10,
n.sim = 1000,
seed = NULL,
file = NULL,
width = 6,
height = 4,
dpi = 500
)
model |
Model object ( |
y |
Dependent (outcome) variable. |
x |
Independent (predictor) 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 |
seed |
Random seed for replicable results.
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.
model = lm(Ozone ~ ., data=airquality)
DPIs = DPI_curve(model, y="Ozone", x="Solar.R", seed=1)
plot(DPIs) # ggplot object
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.