write.result {misty} | R Documentation |
Write Results of a misty Object into an Excel file
Description
This function writes the results of a misty object (misty.object
)
into a Excel file.
Usage
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, check = TRUE)
Arguments
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. |
check |
logical: if |
Details
Currently the function supports result objects from the function
cor.matrix
, crosstab
, descript
, dominance.manual
,
dominance
, effsize
, freq
, item.alpha
, item.cfa
,
item.invar
, item.omega
, result.lca
, multilevel.cfa
,
multilevel.cor
, multilevel.descript
, multilevel.fit
,
multilevel.invar
, multilevel.omega
, na.coverage
,
na.descript
, na.pattern
, robust.coef
, and std.coef
.
Author(s)
Takuya Yanagida takuya.yanagida@univie.ac.at
See Also
cor.matrix
, crosstab
, descript
,
dominance.manual
, dominance
, effsize
,
freq
, item.alpha
, item.cfa
, item.invar
,
item.omega
, result.lca
, multilevel.cfa
,
multilevel.cor
, multilevel.descript
, multilevel.fit
,
multilevel.invar
, multilevel.omega
, na.coverage
,
na.descript
, na.pattern
, robust.coef
, std.coef
Examples
## 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)