| write.result | R Documentation |
This function writes the results of a misty.object) into an Excel file.
write.result(x, file = "Results.xlsx", tri = x$args$tri,
digits = x$args$digits, p.digits = x$args$p.digits,
icc.digits = x$args$icc.digits, r.digits = x$args$r.digits,
ess.digits = x$args$ess.digits, mcse.digits = x$args$mcse.digits,
check = TRUE)
x |
misty object ( |
file |
a character string naming a file with or without file extension
'.xlsx', e.g., |
tri |
a character string or character vector indicating which triangular
of the matrix to show on the console, i.e., |
digits |
an integer value indicating the number of decimal places digits to be used for displaying results. |
p.digits |
an integer indicating the number of decimal places to be used for displaying p-values. |
icc.digits |
an integer indicating the number of decimal places to be used for displaying intraclass correlation coefficients. |
r.digits |
an integer value indicating the number of decimal places to be used for displaying R-hat values. |
ess.digits |
an integer value indicating the number of decimal places to be used for displaying effective sample sizes. |
mcse.digits |
an integer value indicating the number of decimal places to be used for displaying Monte Carlo standard errors. |
check |
logical: if |
Currently the function supports result objects from the following functions:
blimp.bayes, ci.cor, ci.mean,
ci.median, ci.prop, ci.var,
ci.sd, coeff.robust, coeff.std,
cor.matrix, crosstab, descript,
dominance.manual, dominance, effsize,
freq, item.alpha, item.cfa,
item.invar, item.omega, mplus.bayes,
multilevel.cfa, multilevel.cor,
multilevel.descript, multilevel.fit,
multilevel.invar, multilevel.omega,
na.auxiliary, na.coverage, na.descript,
na.pattern, mplus.lca.summa,
summa and uniq
Takuya Yanagida takuya.yanagida@univie.ac.at
## Not run:
#----------------------------------------------------------------------------
# Example 1: item.cfa() function
# Load data set "HolzingerSwineford1939" in the lavaan package
data("HolzingerSwineford1939", package = "lavaan")
result <- item.cfa(HolzingerSwineford1939[, c("x1", "x2", "x3")], output = FALSE)
write.result(result, "CFA.xlsx")
#----------------------------------------------------------------------------
# Example 2: multilevel.descript() function
# Load data set "Demo.twolevel" in the lavaan package
data("Demo.twolevel", package = "lavaan")
result <- multilevel.descript(y1:y3, data = Demo.twolevel, cluster = "cluster",
output = FALSE)
write.result(result, "Multilevel_Descript.xlsx")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.