tidyLPA icon indicating copy to clipboard operation
tidyLPA copied to clipboard

examples for estimate_profiles() do not work when package = 'mplus'?

Open jrosen48 opened this issue 4 years ago • 0 comments

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)

jrosen48 avatar Dec 29 '20 14:12 jrosen48