Announcement

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

  • Human opportunity index

    Human opportunity index

    Hi,
    I am trying to apply below mentioned HOI syntax on education data to check inequality of opportunity in education across different socio-religious categories. while running the syntax I am not getting the desired results. Also same results are showing despite changing independent variables

    Am I doing something wrong.

    . ssc install hoi
    checking hoi consistency and verifying not already installed...
    all files already exist and are up to date.

    . ssc install indeplist
    checking indeplist consistency and verifying not already installed...
    all files already exist and are up to date.

    . hoi elementary_crnt_atdns ( urban male )

    --------------------------------------------------------------------------------------
    | Type
    Variable | Values Std Error LB (95) UB (95)
    ------------------------------+-------------------------------------------------------
    Coverage (C) | 55.6098 0.1343 55.3467 55.8730
    Dissemilarity (D) | 3.2647 0.4987 2.2873 4.2420
    Human Opportunity Index (HOI) | 53.7944 0.1503 53.4997 54.0890
    Pseudo R2 | 0.0044
    Obs Logit | 136,091.0000
    Obs | 136,091.0000
    Wtg Pop | 136,091.0000
    Vulnerable Pop | 52,875.0000
    Vulnerable (%) | 38.8527
    Obs 1 | 136,091.0000
    Obs 2 | 136,091.0000
    Loss (%) | 0.0000
    --------------------------------------------------------------------------------------

    . hoi elementary_crnt_atdns ( rural female )

    --------------------------------------------------------------------------------------
    | Type
    Variable | Values Std Error LB (95) UB (95)
    ------------------------------+-------------------------------------------------------
    Coverage (C) | 55.6098 0.1343 55.3467 55.8730
    Dissemilarity (D) | 3.2647 0.4987 2.2873 4.2420
    Human Opportunity Index (HOI) | 53.7944 0.1503 53.4997 54.0890
    Pseudo R2 | 0.0044
    Obs Logit | 136,091.0000
    Obs | 136,091.0000
    Wtg Pop | 136,091.0000
    Vulnerable Pop | 52,875.0000
    Vulnerable (%) | 38.8527
    Obs 1 | 136,091.0000
    Obs 2 | 136,091.0000
    Loss (%) | 0.0000
    --------------------------------------------------------------------------------------

    . ssc install hoishapley
    checking hoishapley consistency and verifying not already installed...
    all files already exist and are up to date.

    . hoishapley elementary_age_6_13 shapley ( urban male)
    variable shapley not found
    r(111);

    . hoishapley elementary_age_6_13 shapleyc ( urban male)
    variable shapleyc not found
    r(111);

    . hoishapley elementary_age_6_13 shapley ( st sc muslim)
    variable shapley not found
    r(111);

    . hoishapley elementary_age_6_13 shapley ( st sc muslim) shapleyc ( male urban)
    variable shapley not found
    r(111);

    Thank you in advance

    Regards
    Suhail

  • #2
    You should add a commas (,) between the syntax and options, and leave no space between shapley and left bracket (.
    Code:
    hoishapley elementary_age_6_13, shapley( urban male)

    Comment


    • #3
      Thank You Chen for your response. I am getting the below error while applying the code ''hoishapley elementary_age_6_13, shapley( urban male)''

      unrecognized command: catenate
      r(199);

      . hoishapley elementary_age_6_13, shapley( urban male )
      unrecognized command: catenate
      r(199);


      . hoishapley elementary_age_6_13, shapley( urban male)
      unrecognized command: catenate
      r(199);

      . hoishapley elementary_age_6_13, shapley( urban male )
      unrecognized command: catenate
      r(199);

      Comment


      • #4
        In the help file of -hoishapley- command, you will find a note in the end that said:
        Please note that hoishapley uses the user written packages catenate on its calculations. User's can download it from ssc.
        so you can just install -catenate- before running hoishapley.
        Code:
        ssc install catenate

        Comment


        • #5
          Chen is right. Well, that's one more download for the author of catenate and I know he's not complaining. But, but, but: This is what it says on the package description:


          catenate generates a new string variable by concatenating
          varlist. The variables in varlist may be string or numeric. Note
          added 2004: this package was written for Stata 5 and is now
          superseded by egen, concat() in up-to-date Statas.
          The author of hoishapley really didn't need to use catenate or to oblige his users to download it too.

          Comment


          • #6
            Thank You Chen. It worked perfectly fine. Much appreciated.

            Thank you Nick for your inputs.

            Comment

            Working...
            X