Announcement

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

  • Confidence interval in frame

    Hello everyone,

    I am new to Stata 17 and I have a few questions regarding the frames.
    I did this: I ran 200 regressions for one country, stored the coeffcients and applied them into another country. I should have subtracted predicted and averaged (over observations) yhats from a fixed rate I got from another data source. Then I stored 200 differences in the frame. Now I need to find the 95% confidence interval of these 200 differences.

    I tried the following commands:

    . frame results: cii
    you must specify one of means, proportions, or variances
    r(198);

    . frame results: cii results, level(95)
    you must specify one of means, proportions, or variances following cii
    r(198);

    . frame results: cii mean, level(95)
    you must specify 3 arguments with cii means: #obs, #mean, and #sd
    r(198);

    Would appreciate any help!

  • #2
    The problem is not the frames command. The error messages all are regarding the cii command, and the problem is that you should use the ci command not the cii command. Perhaps
    Code:
    frame results: ci means results
    is what you want, based on the code you were given at your earlier topic

    https://www.statalist.org/forums/for...e-in-a-dataset

    which creates a frame named "results" containing 200 observations of a variable named "results".

    Comment

    Working...
    X