Please find below an illustration. The model in the cfa() example can produce the same two warnings if x1 is multiplied by 1000:
``` r
library(lavaan)
#> This is lavaan 0.6-17
#> lavaan is FREE software! Please report any bugs.
# Original data
HS.model <- ' visual =~ x1 + x2 + x3
textual =~ x4 + x5 + x6
speed =~ x7 + x8 + x9 '
HolzingerSwineford1939$x1 <- HolzingerSwineford1939$x1
fit <- cfa(HS.model, data = HolzingerSwineford1939)
# Multiply x1 by 1000
HolzingerSwineford1939$x1 <- HolzingerSwineford1939$x1 * 1000
fit <- cfa(HS.model, data = HolzingerSwineford1939)
#> Warning in lav_data_full(data = data, group = group, cluster = cluster, :
#> lavaan WARNING: some observed variances are (at least) a factor 1000 times
#> larger than others; use varTable(fit) to investigate
#> Warning in lav_data_full(data = data, group = group, cluster = cluster, : lavaan WARNING: some observed variances are larger than 1000000
#> lavaan NOTE: use varTable(fit) to investigate
#> Warning in lav_model_vcov(lavmodel = lavmodel, lavsamplestats = lavsamplestats, : lavaan WARNING:
#> Could not compute standard errors! The information matrix could
#> not be inverted. This may be a symptom that the model is not
#> identified.
varTable(fit)
#> name idx nobs type exo user mean var nlev lnam
#> 1 x1 7 301 numeric 0 0 4935.770 1362897.745 0
#> 2 x2 8 301 numeric 0 0 6.088 1.386 0
#> 3 x3 9 301 numeric 0 0 2.250 1.279 0
#> 4 x4 10 301 numeric 0 0 3.061 1.355 0
#> 5 x5 11 301 numeric 0 0 4.341 1.665 0
#> 6 x6 12 301 numeric 0 0 2.186 1.200 0
#> 7 x7 13 301 numeric 0 0 4.186 1.187 0
#> 8 x8 14 301 numeric 0 0 5.527 1.025 0
#> 9 x9 15 301 numeric 0 0 5.374 1.018 0
```
<sup>Created on 2024-03-01 with [reprex v2.1.0](
https://reprex.tidyverse.org)</sup>