get_fit: Get fit indices from objects generated by tidyLPA

Description Usage Arguments Value Methods (by class) Author(s) Examples

View source: R/estimate-profiles.R

Description

Get fit indices from objects generated by tidyLPA.

Usage

1
2
3
4
5
6
7
get_fit(x, ...)

## S3 method for class 'tidyLPA'
get_fit(x, ...)

## S3 method for class 'tidyProfile'
get_fit(x, ...)

Arguments

x

An object generated by tidyLPA.

...

further arguments to be passed to or from other methods. They are ignored in this function.

Value

A tibble. Learn more at https://data-edu.github.io/tidyLPA/articles/Introduction_to_tidyLPA.html#getting-fit-statistics

Methods (by class)

Author(s)

Caspar J. van Lissa

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
## Not run: 
if(interactive()){
 results <- iris %>%
   select(Sepal.Length, Sepal.Width, Petal.Length, Petal.Width) %>%
   estimate_profiles(3)
 get_fit(results)
 get_fit(results[[1]])
 }

## End(Not run)

data-edu/tidyLPA documentation built on Dec. 9, 2019, 2:45 a.m.