Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • r(3900); error running Latent Class Analysis

    I'm trying to run a latent class analysis analysis (60,000 cases, 20 variables, with group (6 groups)) and getting this error. Do you know what causes it? I have 64gb of RAM on 64 bit windows machine on Stata 16 (64bit) so I doubt it's a RAM problem


    quietly gsem (V1 V2 V3 V4 V5 V6 V7 V8 V9 V10 V11 V12 V13 V14 V15 V16 V17 V18 V19 V20 <- _cons), group(localauthority) family(bernoulli) link(logit) lclass(C 7) iterate(40) startvalues(randompr, draws (10) seed (5) difficult) emopts(iterate (5) difficult)

    J(): 3900 unable to allocate real <tmp>[61084,461280]
    _gsem_eval_mix(): - function returned error
    mopt__calluser_v(): - function returned error
    opt__eval_nr_v2(): - function returned error
    opt__eval(): - function returned error
    opt__looputil_iter0_common(): - function returned error
    opt__looputil_iter0_nr(): - function returned error
    opt__loop_nr(): - function returned error
    opt__loop(): - function returned error
    _moptimize(): - function returned error
    Mopt_maxmin(): - function returned error
    <istmt>: - function returned error



  • #2
    Welcome to Statalist.

    You will find a useful discussion of the memory requirements of the gsem command in the Statalist topic at

    https://www.statalist.org/forums/for...usage-and-mata

    Comment

    Working...
    X