Announcement

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

  • Microsimulation

    Dear all,

    Do someone know where can I download the varopts command?

    I am working on a microsimulation project "Impact of energy and water project on the multidimensional povert in a community".
    The household is the unit of analysis and water and energy are dummy variables (0 non deprevid, and 1 deprived) which is the suitest command to target make a sample of households eligible
    for water and energy in the first scenario?
    Last edited by Bijou Cardoso; 16 Apr 2025, 22:00.

  • #2
    For the microsimulation
    Baseline command was
    gen fonte_agua=((FONTE_AGUA_PARA_BEBER>=7 & FONTE_AGUA_PARA_BEBER<=10) | FONTE_AGUA_PARA_BEBER==13)
    replace fonte_agua=. if FONTE_AGUA_PARA_BEBER==99
    lab var fonte_agua "Privado em fonte de agua"


    /* 3.3. Energia*/

    gen electricidade = (FONTE_DE_ENERGIA >= 4)
    replace electricidade=. if FONTE_DE_ENERGIA==.
    lab var electricidade "Privado em electricidade"

    For the scenario where Households have energy and water

    gen fonte_agua= 0

    everyone has water

    /* 3.3. Energia*/

    gen electricidade = 0
    everyone has

    But, I would like to give the energy just for 250 household

    Comment


    • #3
      Bijou:
      as per FAQ, Sandbox is useful for practising, not for posting queries.
      Please post on the General forum to have your question (hopefully) replied. Thanks.
      Kind regards,
      Carlo
      (Stata 19.0)

      Comment

      Working...
      X