R Under development (unstable) (2025-11-15 r89024 ucrt) -- "Unsuffered Consequences" Copyright (C) 2025 The R Foundation for Statistical Computing Platform: x86_64-w64-mingw32/x64 R is free software and comes with ABSOLUTELY NO WARRANTY. You are welcome to redistribute it under certain conditions. Type 'license()' or 'licence()' for distribution details. R is a collaborative project with many contributors. Type 'contributors()' for more information and 'citation()' on how to cite R or R packages in publications. Type 'demo()' for some demos, 'help()' for on-line help, or 'help.start()' for an HTML browser interface to help. Type 'q()' to quit R. > library(testthat) > library(surveymixr) > > test_check("surveymixr") Growth Mixture Model with 2 Classes ===================================== Model: Growth model: linear N = 100 individuals T = 4 time points Parameters: 7 Survey Design: Weights: No Clustering: No Stratification: No Fit: LogLik: -1012.04 AIC: 2038.08 BIC: 2056.32 Entropy: 0.000 Class Proportions (Weighted): Class 1: 0.493 Class 2: 0.507 Convergence: Status: Converged Iterations: 5 Random starts: 10 Best solution replicated: 1 times --- Use summary() for detailed results Use plot() to visualize trajectories ======================================== Growth Mixture Model - Detailed Summary ======================================== MODEL SPECIFICATION ------------------- Growth model: linear Number of classes: 2 Sample size: 100 Time points: 4 Time scores: 0, 1, 2, 3 SURVEY DESIGN ------------- Sampling weights: No GROWTH PARAMETERS ----------------- Class 1 (n = 0.0, 49.3%): Intercept: 9.573 (SE = 1.000) Slope: -0.330 (SE = 1.000) Residual SD: 4.018 (SE = 0.338) Class 2 (n = 100.0, 50.7%): Intercept: 9.573 (SE = 1.000) Slope: -0.330 (SE = 1.000) Residual SD: 4.030 (SE = 0.337) CLASS PROPORTIONS ----------------- Class Weighted Unweighted 1 0.493 0.493 2 0.507 0.507 FIT INDICES ----------- Log-likelihood: -1012.04 Parameters: 7 AIC: 2038.08 BIC: 2056.32 aBIC: 2034.21 Entropy: 0.000 Average posterior prob: 0.507 CLASSIFICATION QUALITY ---------------------- Class AvePP OCC 1 NA NA 2 0.507 1.03 CONVERGENCE ----------- Status: Converged Iterations: 5 Random starts: 10 Best logLik: -1012.04 Replications: 1 WARNING: Best solution not replicated. Consider increasing 'starts'. Computation time: 0.8 seconds ======================================== n_classes loglik aic bic abic entropy smallest_class 1 1 -2411.522 4829.043 4839.608 4830.097 NaN 1.000 2 2 -2320.153 4654.306 4678.956 4656.766 0.7187677 0.152 3 3 -2320.153 4662.306 4701.042 4666.171 0.3265901 0.164 4 4 -2320.153 4670.306 4723.128 4675.577 0.2319569 0.184 n_params converged 1 3 TRUE 2 7 TRUE 3 11 TRUE 4 15 TRUE n_classes loglik aic bic abic entropy smallest_class 1 2 -2340.698 4695.396 4720.046 4697.856 0.7191759 0.164 2 3 -2340.585 4703.171 4741.907 4707.036 0.3225037 0.208 n_params converged 1 7 TRUE 2 11 TRUE n_classes loglik aic bic abic entropy smallest_class 1 1 -1959.571 3925.142 3935.037 3925.533 NaN 1.00 2 2 -1940.960 3895.920 3919.008 3896.831 0.3692386 0.32 3 3 -1940.960 3903.921 3940.202 3905.353 0.4140324 0.31 n_params converged 1 3 TRUE 2 7 TRUE 3 11 TRUE n_classes loglik aic bic abic entropy smallest_class 1 2 -3550.426 7114.852 7140.778 7118.578 0.7844097 0.1866667 2 3 -3550.426 7122.852 7163.594 7128.708 0.7145465 0.1800000 3 4 -3550.428 7130.857 7186.414 7138.843 0.3259081 0.2000000 n_params converged 1 7 TRUE 2 11 TRUE 3 15 TRUE [ FAIL 0 | WARN 77 | SKIP 63 | PASS 628 ] ══ Skipped tests (63) ══════════════════════════════════════════════════════════ • Binary distal outcomes require special handling - implement in v0.3.0 (1): 'test-r3step.R:337:3' • Cross-sectional validation not yet implemented in gmm_survey() (1): 'test-edge-cases.R:379:3' • ML method not yet implemented in r3step (1): 'test-r3step.R:49:3' • Mplus comparison requires Mplus installation - test manually (1): 'test-comprehensive.R:423:3' • Mplus conversion requires Mplus syntax parser - implement in future (1): 'test-utilities.R:118:3' • Mplus export requires template - implement in future (1): 'test-utilities.R:138:3' • On CRAN (39): 'test-convergence.R:5:3', 'test-convergence.R:35:3', 'test-convergence.R:69:3', 'test-convergence.R:109:3', 'test-convergence.R:153:3', 'test-convergence.R:186:3', 'test-convergence.R:225:3', 'test-convergence.R:256:3', 'test-convergence.R:289:3', 'test-convergence.R:330:3', 'test-convergence.R:364:3', 'test-convergence.R:391:3', 'test-convergence.R:420:3', 'test-convergence.R:448:3', 'test-edge-cases.R:5:3', 'test-edge-cases.R:34:3', 'test-edge-cases.R:61:3', 'test-edge-cases.R:94:3', 'test-edge-cases.R:129:3', 'test-edge-cases.R:160:3', 'test-edge-cases.R:191:3', 'test-edge-cases.R:221:3', 'test-edge-cases.R:262:3', 'test-edge-cases.R:290:3', 'test-edge-cases.R:347:3', 'test-edge-cases.R:428:3', 'test-edge-cases.R:459:3', 'test-edge-cases.R:492:3', 'test-edge-cases.R:528:3', 'test-model-selection.R:5:3', 'test-model-selection.R:49:3', 'test-model-selection.R:76:3', 'test-model-selection.R:108:3', 'test-model-selection.R:141:3', 'test-model-selection.R:172:3', 'test-model-selection.R:207:3', 'test-model-selection.R:236:3', 'test-model-selection.R:266:3', 'test-model-selection.R:305:3' • Quadratic growth model parameter naming needs verification (1): 'test-growth-models.R:50:3' • Requires fitted models (2): 'test-lmr-cv.R:43:3', 'test-lmr-cv.R:56:3' • Requires fitted models - placeholder test (1): 'test-lmr-cv.R:22:3' • check_missing_patterns() not yet implemented (1): 'test-missing-data.R:322:5' • compare_classes requires covariates in @data - functionality needs review (2): 'test-comprehensive.R:357:3', 'test-comprehensive.R:392:3' • empty test (2): 'test-lmr-cv.R:273:1', 'test-missing-data.R:270:1' • nonlinear growth model not yet implemented (1): 'test-growth-models.R:119:3' • plot_class_comparison requires covariates in @data - functionality needs review (1): 'test-comprehensive.R:513:3' • r3step has subscript out of bounds bug - skipping until fixed (7): 'test-r3step.R:120:3', 'test-r3step.R:158:3', 'test-r3step.R:194:3', 'test-r3step.R:231:3', 'test-r3step.R:264:3', 'test-r3step.R:298:3', 'test-r3step.R:374:3' [ FAIL 0 | WARN 77 | SKIP 63 | PASS 628 ] > > proc.time() user system elapsed 582.85 2.65 585.90