apply_transform_to_one_row: Reading results from estimated Mplus models

View source: R/reading_from_mplus.R

apply_transform_to_one_rowR Documentation

Reading results from estimated Mplus models

Description

Transforms data frames with model parameters in long format to a format with only one row and each parameter-statistic put into a separate column.

Usage

apply_transform_to_one_row(x, what)

transform_to_one_row(x, what)

Arguments

x

a data frame or a list of data frames

what

a character vector indicating which statistics - to be chosen from the set: "est", "se", "est_se" and "pval" - should be included in the resulting data frames

Value

A data frame with only one row and often many columns. Name of columns are created by concatenating names of columns that do not store statistics using a dot (".") as a separator and then adding statistic name separated by "__".


tzoltak/rstyles documentation built on Dec. 4, 2024, 5:16 p.m.