Announcement

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

  • Retrieve values from a tabulate, with svy

    Hi,

    I would need your help to retrieve numerical values from a tabulate, with weights (svy function). I already success to get percentage (from my binary variable), but I can't get the confidence intervals back. I would like to put them in a matrix since I have a large number of variables.

    For percentage value I success with this command :

    "
    svy : tab DurHebdBaseballBin, ci perc
    ereturn display
    matrix a = r(table)
    "

    But for confidence intervals values are differents from my original table.

    So my question is is it possible to get the data from a table with weights?

    Table where I would like to retrieve the data :
    Click image for larger version

Name:	2022-04-26_16h25_35.png
Views:	2
Size:	7.3 KB
ID:	1661624


    Thanks a lot for your help,
    Jérôme

  • #2
    Welcome to Statalist.

    You have accidentally posted your topic in Statalist's Mata Forum, which is used for discussions of Stata's Mata language, which is different than Stata's command language, and different than Stata's matrix commands. Your question will see a more appropriate and much larger audience if you post it in Statalist's General Forum.

    Also, if you have not already done so, take a look at the Statalist FAQ linked to at the top of this page for posting guidelines and suggestions.

    Comment

    Working...
    X