View source: R/growth-mixture-methods.R
| get_results.latents_growth_mixture | R Documentation |
Every table of a mixture_regression() fit with random = is a base
data.frame with one row per observation unit of that table.
## S3 method for class 'latents_growth_mixture'
get_results(
x,
what = "coefficients",
level = 0.95,
vcov_type = NULL,
time = NULL,
data = NULL,
truth = NULL,
...
)
## S3 method for class 'latents_growth_mixture'
as.data.frame(
x,
row.names = NULL,
optional = FALSE,
what = "coefficients",
...
)
## S3 method for class 'latents_growth_mixture'
coef(object, ...)
## S3 method for class 'latents_growth_mixture'
vcov(object, type = NULL, ...)
## S3 method for class 'latents_growth_mixture'
confint(object, parm, level = 0.95, ...)
## S3 method for class 'latents_growth_mixture'
logLik(object, ...)
## S3 method for class 'latents_growth_mixture'
nobs(object, ...)
x |
A |
what |
Which table: |
level |
Confidence level of the intervals. |
vcov_type |
|
time |
For |
data, truth |
For |
... |
Unused. |
row.names, optional |
Unused; for the generic. |
object |
A |
type |
As |
parm |
Unused. |
A base data.frame (or, for "all", a named list of them).
few_students <- subset(growth_scores, student <= 60)
small_fit <- mixture_regression(score ~ wave, few_students, n_classes = 2,
id = "student", class_level = "group",
random = "intercept", seed = 1)
get_results(small_fit, "classes")
get_results(small_fit, "random")
# All 300 students, with random intercepts and slopes
fit <- mixture_regression(score ~ wave, growth_scores, n_classes = 3,
id = "student", class_level = "group",
random = "wave", random_covariance = "equal",
n_starts = 3, seed = 1)
get_results(fit, "classes")
get_results(fit, "random")
get_results(fit, "recovery", data = growth_scores, truth = "trajectory")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.