print.diffci | R Documentation |
Print method for output from the probci
function.
## S3 method for class 'diffci'
print(
x,
type = c("pr", "pw"),
...,
digits = 4,
filter = NULL,
const = NULL,
onlySig = FALSE
)
x |
A object of class |
type |
Which kind of result to print - predictions ( |
... |
Other arguments to be passed down to print, currently unimplemented. |
digits |
How many digits to round output. |
filter |
A named list of values where the names indicate the variable to be filtered and the values in the vector indicate the values to include for the filtering variable. |
const |
A string identifying the name of the variable to be held
constant across comparisons. Only applies if |
onlySig |
Logical indicating whether all differes should be displayed or only those significant at the 95% two-tailed level. |
An data frame with the following variables:
variables |
The
variables and the values at which they are held constant. For example,
|
pred_prob |
The difference in predicted
probability given the following change in |
lower, upper |
The lower and upper 95% confidence bounds. |
Dave Armstrong
data(france)
left.mod <- glm(voteleft ~ male + age + retnat +
poly(lrself, 2, raw=TRUE), data=france, family=binomial)
data(france)
left.mod <- glm(voteleft ~ male + age + retnat +
poly(lrself, 2, raw=TRUE), data=france, family=binomial)
out <- probci(left.mod, france, numQuantVals=3,
changeX=c("retnat", "lrself"), calcPW = TRUE)
print(out, filter=list(retnat=c("Better", "Worse")))
print(out, type="pw",
filter=list(retnat=c("Better", "Worse")),
const="lrself")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.