Learn R Programming

misty (version 0.6.7)

write.result: 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, r.digits = x$args$r.digits,
             ess.digits = x$args$ess.digits, mcse.digits = x$args$mcse.digits,
             check = TRUE)

Arguments

x

misty object (misty.object) resulting from a misty function supported by the write.result function (see 'Details').

file

a character string naming a file with or without file extension '.xlsx', e.g., "Results.xlsx" or "Results".

tri

a character string or character vector indicating which triangular of the matrix to show on the console, i.e., both for upper and lower triangular, lower for the lower triangular, and upper for the upper triangular.

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 TRUE (default), argument specification is checked.

Author

Takuya Yanagida takuya.yanagida@univie.ac.at

Details

Currently the function supports result objects from the function blimp.bayes, 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, mplus.bayes, multilevel.fit, multilevel.invar, multilevel.omega, na.auxiliary, na.coverage, na.descript, na.pattern, robust.coef, and std.coef.

See Also

blimp.bayes, cor.matrix, crosstab, descript, dominance.manual, dominance, effsize, freq, item.alpha, item.cfa, item.invar, item.omega, result.lca, mplus.bayes, multilevel.cfa, multilevel.cor, multilevel.descript, multilevel.fit, multilevel.invar, multilevel.omega, na.auxiliary, na.coverage, na.descript, na.pattern, robust.coef, std.coef

Examples

Run this code
if (FALSE) {
#----------------------------------------------------------------------------
# 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")
}

Run the code above in your browser using DataLab