tidyLPA
tidyLPA copied to clipboard
examples for estimate_profiles() do not work when package = 'mplus'?
library(tidyLPA)
#> You can use the function citation('tidyLPA') to create a citation for the use of {tidyLPA}.
#> Mplus is not installed. Use only package = 'mclust' when calling estimate_profiles().
library(dplyr)
#> Warning: package 'dplyr' was built under R version 3.6.2
#>
#> Attaching package: 'dplyr'
#> The following objects are masked from 'package:stats':
#>
#> filter, lag
#> The following objects are masked from 'package:base':
#>
#> intersect, setdiff, setequal, union
iris_sample <- iris[c(1:4, 51:54, 101:104), ] # to make example run more quickly
# Example 1:
iris_sample %>%
subset(select = c("Sepal.Length", "Sepal.Width",
"Petal.Length")) %>%
estimate_profiles(3, package = "mplus")
#> Error: Mplus variable names must start with an alphabetical character, and may contain numbers and/or the underscore character (_). Some of your variables violate this rule:
#> Sepal.Length
#> Sepal.Width
#> Petal.Length
Created on 2020-12-29 by the reprex package (v0.3.0)