Description Usage Arguments Value Examples
Forms a complete dataset through latent class concatenation of imperfectly matched dataset features.
1 | rosetta(d, factor_structure)
|
d |
A list of dataframes with imperfectly matched features. |
factor_structure |
A named list. The list names are the factor names. Each element is a character vector of feature names for the corresponding factor. |
List of dataframes which contain factor scores.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | #----------------------------------------------------------------------------
# Rosetta example
#----------------------------------------------------------------------------
library(rosetta)
# simulate data
d <- sim()
# check feature names
lapply(d$missing, names)
# run rosetta
d_rosetta <- rosetta(
d = d$missing,
factor_structure = list(
a = c("a_1", "a_2", "a_3"),
b = c("b_1", "b_2", "b_3"),
c = c("c_1", "c_2", "c_3")
)
)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.