Last updated on 2025-12-06 10:51:22 CET.
| Package | ERROR | NOTE | OK |
|---|---|---|---|
| lavaan.mi | 13 | ||
| semTools | 1 | 12 | |
| simsem | 1 | 12 |
Current CRAN status: OK: 13
Current CRAN status: ERROR: 1, OK: 12
Version: 0.5-7
Check: examples
Result: ERROR
Running examples in ‘semTools-Ex.R’ failed
The error most likely occurred in:
> base::assign(".ptime", proc.time(), pos = "CheckExEnv")
> ### Name: chisqSmallN
> ### Title: Small-_N_ correction for chi^2 test statistic
> ### Aliases: chisqSmallN
>
> ### ** Examples
>
>
> HS.model <- '
+ visual =~ x1 + b1*x2 + x3
+ textual =~ x4 + b2*x5 + x6
+ speed =~ x7 + b3*x8 + x9
+ '
> fit1 <- cfa(HS.model, data = HolzingerSwineford1939[1:50,])
Warning: lavaan->lav_object_post_check():
some estimated ov variances are negative
> ## test a single model (implicitly compared to a saturated model)
> chisqSmallN(fit1)
Warning: lavaan->class(fit0)():
Unknown argument ‘omit.imps’ for ‘fitMeasures’
Warning: lavaan->class(fit0)():
Unknown argument ‘asymptotic’ for ‘fitMeasures’
$standard
chisq df pvalue
55.138 24.000 0.000
$swain
chisq df pvalue smallN.factor
50.704 24.000 0.001 0.920
$yuan.2015
chisq df pvalue smallN.factor
48.791 24.000 0.002 0.885
>
> ## fit a more constrained model
> fit0 <- cfa(HS.model, data = HolzingerSwineford1939[1:50,],
+ orthogonal = TRUE)
Warning: lavaan->lav_object_post_check():
some estimated ov variances are negative
> ## compare 2 models
> chisqSmallN(fit1, fit0)
Warning: lavaan->class(fit0)():
Unknown argument ‘omit.imps’ for ‘fitMeasures’
Warning: lavaan->class(fit1)():
Unknown argument ‘omit.imps’ for ‘fitMeasures’
Warning in chisqSmallN(fit1, fit0) :
Small-N corrections developed for single models, not for model comparison. Experimentally applying correction to chi-squared difference statistic, which might be invalid.
Warning: lavaan->FUN():
Unknown argument ‘pool.robust’ for ‘fitMeasures’
Warning: lavaan->FUN():
Unknown argument ‘pool.method’ for ‘fitMeasures’
Warning: lavaan->FUN():
Unknown argument ‘pool.robust’ for ‘fitMeasures’
Warning: lavaan->FUN():
Unknown argument ‘pool.method’ for ‘fitMeasures’
Error in chisqSmallN(fit1, fit0) :
Model comparison failed. Try using lavTestLRT() to investigate why.
Execution halted
Flavor: r-devel-linux-x86_64-debian-gcc
Current CRAN status: NOTE: 1, OK: 12
Version: 0.5-17
Check: package dependencies
Result: NOTE
Package suggested but not available for checking: 'OpenMx'
Flavor: r-oldrel-windows-x86_64