Announcement

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

  • collect use error -- "too many dimension levels"

    Hi,
    When I create a collection that includes a number of regression models, save the collection, and then later try to use it from the file, I get the following error:
    Code:
    . collect use "results/collect/model1",replace
    problem with collection results/collect/model1.stjson;
    invalid item dimension specification;
    too many dimension levels specified
    r(103);
    I will grant it is a large collection of models.
    Code:
    . collect dims
    
    Collection dimensions
    Collection: model1
    -----------------------------------------
                       Dimension   No. levels
    -----------------------------------------
    Layout, style, header, label
                          cmdset   21        
                           coleq   9         
                         colname   9         
               colname_remainder   1         
                           model   3         
                   program_class   1         
                          result   56        
                     result_type   3         
                         rowname   1         
                           score   7         
                          visit0   3         
    
    Style only
                    border_block   4         
                       cell_type   4         
    -----------------------------------------
    But I see the same issue if I only do one model so cmdset has 3 levels.

    And I think I have done this with larger ones before.

    I have Stata 18.0 / 15 May 2023.
    Realize this is old, but I have no control over that or access to the internet through Stata.
    Is this something fixed in later revisions?
    Or is this simply too big?
    If so, how can I prevent collect from collecting all the results? -- I do not need every thing returned from the model to be in the collection.

    Thanks,
    Scott


  • #2
    Please send an email to [email protected]

    In the email, please provide a do-file, dataset, and the stjson file you are trying to collect use. If you can't share the dataset, we at least need the stjson file -- the do-file will help to.

    Comment

    Working...
    X