Description Usage Arguments See Also Examples
This only works if the focus estimates are available. The focus estimates are plotted against the root MSE. One plot is made for each covariate value defining different focuses. If the wide model estimate is available, this is illustrated as a solid line on the plot, and if the narrow model estimate is available, this is showm as a dashed line.
1 2 |
x |
Output from |
ci |
Plot interval estimates? ( |
legend |
Show a legend, identifying a) the line types for the wide and narrow models b) the names of the terms of the wide model. This is used when
the |
ylab |
y-axis label. |
xlab |
x-axis label. |
xlim |
x-axis limits (pair of numbers) |
ylim |
y-axis limits |
plot.fic, summary.fic
1 2 3 4 5 6 7 8 9 10 11 12 13 | ## Example from the main vignette, see there for more details
wide.glm <- glm(low ~ lwtkg + age + smoke + ht + ui + smokeage + smokeui,
data=birthwt, family=binomial)
vals.smoke <- c(1, 58.24, 22.95, 1, 0, 0, 22.95, 0)
vals.nonsmoke <- c(1, 59.50, 23.43, 0, 0, 0, 0, 0)
X <- rbind("Smokers" = vals.smoke, "Non-smokers" = vals.nonsmoke)
inds0 <- c(1,1,0,0,0,0,0,0)
combs <- all_inds(wide.glm, inds0)
ficres <- fic(wide = wide.glm, inds = combs, inds0 = inds0,
focus = prob_logistic, X = X)
ggplot_fic(ficres)
summary(ficres)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.