Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8558917
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T15:55:14+00:00 2026-06-11T15:55:14+00:00

I need to store the value for the cluster robust standard error in order

  • 0

I need to store the value for the cluster robust standard error in order to use it to create a new variable.

I am able to get the cluster robust standard error with the mean command, but stata does not store this value.

Do you have any suggestions about how to calculate the cluster robust standard error for an estimate and then store this value in order to use it to create a new variable?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-11T15:55:15+00:00Added an answer on June 11, 2026 at 3:55 pm

    I think this might almost do the trick. There might be a more elegant way to do this. Toy data, nonsensical example:

    /* Get some data */
    webuse nhanes2f, clear
    svyset psuid [pweight=finalwgt], strata(stratid)
    
    /* get the standard error of the constant, which is the mean */
    svy: reg zinc
    display _se[_cons]
    generate se = _se[_cons]
    
    /* Verify that this is correct */
    svy: mean zinc
    

    However, you also want to cluster, which complicates things. I think if you only have survey weights (aka first stage clusters), you can do:

    reg zinc [pweight=finalwgt], cluster(region)
    

    There might a way to do what you want with -glamm-, which is user-written command. You should ask this question on Statalist if you don’t get much of response here.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Need to store check box value in a variable and if it is on
I need to use STL C++ map to store key value pairs. I need
I need to store a value from the database in a variable, and I
I need to temporarily store the value in a PHP variable because the value
If I store a string value in my session variable, do I need to
I need a dictionary but I also need to store a boolean value about
I need something like a temporary in-memory key-value store. I know there are solutions
I'm designing a Java based web-app and I need a key-value store. Berkeley DB
I need an algorithm to store a key/value pair, where the key is an
I need some kind of priority queue to store pairs <key, value> . Values

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.