QuickEffectSize | R Documentation |
This package visualizes effect sizes. It relies on the Zelig package.
QuickEffectSize(zelig.model, iv.var, sim.n = 100, range.n = 100, custom.range, return.pdata = FALSE, progress = TRUE, xlab = iv.var, ylab = dv.var, coord.ylim, set.covar = NULL, transform.x, transform.y, ...)
zelig.model |
Fitted zelig model |
iv.var |
Independent variable. |
sim.n |
Number of simulations for each value of iv.var simulated. Defaults to 100. |
range.n |
Number of different values of iv.var to simulate. Defaults to 100. |
custom.range |
Vector of two values specifying a range within which different values of iv.var should be simulated. (Optional) |
return.pdata |
Should the data to construct the plot be returned instead of the plot itself? Defaults to FALSE. |
progress |
Should progress be reported? (defaults to TRUE) |
coord.ylim |
Sets limits on what part of the x.axis to display through ggplots coord_cartesian() function. (Optional) |
set.covar |
Option to specify values of other predictors in simulations. (Optional) |
transform.x |
If provided a function, transforms x-values according to function before plotting. (Optional) |
transform.y |
If provided a function, transforms y-values according to function before plotting. (Optional) |
... |
Passed to ggplot2's *theme()* function. (Optimal) |
dat <- data.frame(y = rnorm(100), x1 = rnorm(100), x2 = rnorm(100)) dat$x3 <- dat$y + rnorm(100) library(Zelig) qes(zelig(y ~ x1 + x2 + x3, data = dat, model = "normal"), iv.var = "x3", xlab = "Using qes", ylab = "Productivity")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.