Description Usage Arguments Value References Examples
View source: R/apaRegressionBootTable.R
Creates a regresion table in APA style with bootstrap confidence intervals
1 2 3 4 5 6 | apa.reg.boot.table(
...,
filename = NA,
table.number = NA,
number.samples = 1000
)
|
... |
Regression (i.e., lm) result objects. Typically, one for each block in the regression. |
filename |
(optional) Output filename document filename (must end in .rtf or .doc only) |
table.number |
Integer to use in table number output line |
number.samples |
Number of samples to create for bootstrap CIs |
APA table object
Algina, J. Keselman, H.J. & Penfield, R.J. (2008). Note on a confidence interval for the squared semipartial correlation coefficient. Educational and Psychological Measurement, 68, 734-741.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 | ## Not run:
#Note: number.samples = 50 below.
# However, please use a value of 1000 or higher
# View top few rows of goggles data set
# from Discovering Statistics Using R
set.seed(1)
head(album)
# Single block example
blk1 <- lm(sales ~ adverts + airplay, data=album)
apa.reg.boot.table(blk1)
apa.reg.boot.table(blk1,filename="exRegTable.doc")
# Two block example, more than two blocks can be used
blk1 <- lm(sales ~ adverts, data=album)
blk2 <- lm(sales ~ adverts + airplay + attract, data=album)
apa.reg.boot.table(blk1,blk2,filename="exRegBlocksTable.doc")
# Interaction product-term test with blocks
blk1 <- lm(sales ~ adverts + airplay, data=album)
blk2 <- lm(sales ~ adverts + airplay + I(adverts * airplay), data=album)
apa.reg.boot.table(blk1,blk2,filename="exInteraction1.doc")
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.