Announcement

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

  • I have trouble running countfit since I switched from Stata 14 to 15

    I have trouble running countfit since I switched from Stata 14 to 15 two weeks ago.

    When I now run a do-file that worked perfectly on 3 July 2018 I get the following error message:

    countfit does not work with weights.
    graph Graph not found

    I did NOT specify weights, nor did I change the syntax for saving the graph.

    I have tried removing the ado-file & reinstalling it but that doesn't solve the problem.

    Here's a simplified example of the syntax:

    countfit depvar indepvar controls, forcevuong replace inflate(indepvar controls)
    graph save Graph "C:\blablabla", replace;





  • #2
    Welcome to Statalist.

    The first error message refers, not to countfit command that you ran, but to the poisson or nbreg command you ran immediately before and did not show us.

    The second error message tells us that the countfit command did not produce the graph you are trying to save.

    Please review the Statalist FAQ linked to from the top of the page, as well as from the Advice on Posting link on the page you used to create your post. Note especially sections 9-12 on how to best pose your question.

    The more you help others understand your problem, the more likely others are to be able to help you solve your problem.

    Section 12.1 is particularly pertinent

    12.1 What to say about your commands and your problem

    Say exactly what you typed and exactly what Stata typed (or did) in response. N.B. exactly!
    Don't retype and simplify your code, you risk leaving out crucial details.

    To assure maximum readability of results that you post, please copy commands and results from the Results window or your log file into a code block in the Forum editor, as explained in section 12 of the Statalist FAQ. For example, the following:

    [CODE]
    . sysuse auto, clear
    (1978 Automobile Data)

    . describe make price

    storage display value
    variable name type format label variable label
    -----------------------------------------------------------------
    make str18 %-18s Make and Model
    price int %8.0gc Price
    [/CODE]

    will be presented in the post as the following:
    Code:
    . sysuse auto, clear
    (1978 Automobile Data)
    
    . describe make price
    
                  storage   display    value
    variable name   type    format     label      variable label
    -----------------------------------------------------------------
    make            str18   %-18s                 Make and Model
    price           int     %8.0gc                Price

    Comment

    Working...
    X