Karl Bartel
    • Create new note
    • Create a note from template
      • Sharing URL Link copied
      • /edit
      • View mode
        • Edit mode
        • View mode
        • Book mode
        • Slide mode
        Edit mode View mode Book mode Slide mode
      • Customize slides
      • Note Permission
      • Read
        • Only me
        • Signed-in users
        • Everyone
        Only me Signed-in users Everyone
      • Write
        • Only me
        • Signed-in users
        • Everyone
        Only me Signed-in users Everyone
      • Engagement control Commenting, Suggest edit, Emoji Reply
    • Invite by email
      Invitee

      This note has no invitees

    • Publish Note

      Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note

      Your note will be visible on your profile and discoverable by anyone.
      Your note is now live.
      This note is visible on your profile and discoverable online.
      Everyone on the web can find and read all notes of this public team.
      See published notes
      Unpublish note
      Please check the box to agree to the Community Guidelines.
      View profile
    • Commenting
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
      • Everyone
    • Suggest edit
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
    • Emoji Reply
    • Enable
    • Versions and GitHub Sync
    • Note settings
    • Note Insights New
    • Engagement control
    • Make a copy
    • Transfer ownership
    • Delete this note
    • Save as template
    • Insert from template
    • Import from
      • Dropbox
      • Google Drive
      • Gist
      • Clipboard
    • Export to
      • Dropbox
      • Google Drive
      • Gist
    • Download
      • Markdown
      • HTML
      • Raw HTML
Menu Note settings Note Insights Versions and GitHub Sync Sharing URL Create Help
Create Create new note Create a note from template
Menu
Options
Engagement control Make a copy Transfer ownership Delete this note
Import from
Dropbox Google Drive Gist Clipboard
Export to
Dropbox Google Drive Gist
Download
Markdown HTML Raw HTML
Back
Sharing URL Link copied
/edit
View mode
  • Edit mode
  • View mode
  • Book mode
  • Slide mode
Edit mode View mode Book mode Slide mode
Customize slides
Note Permission
Read
Only me
  • Only me
  • Signed-in users
  • Everyone
Only me Signed-in users Everyone
Write
Only me
  • Only me
  • Signed-in users
  • Everyone
Only me Signed-in users Everyone
Engagement control Commenting, Suggest edit, Emoji Reply
  • Invite by email
    Invitee

    This note has no invitees

  • Publish Note

    Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note

    Your note will be visible on your profile and discoverable by anyone.
    Your note is now live.
    This note is visible on your profile and discoverable online.
    Everyone on the web can find and read all notes of this public team.
    See published notes
    Unpublish note
    Please check the box to agree to the Community Guidelines.
    View profile
    Engagement control
    Commenting
    Permission
    Disabled Forbidden Owners Signed-in users Everyone
    Enable
    Permission
    • Forbidden
    • Owners
    • Signed-in users
    • Everyone
    Suggest edit
    Permission
    Disabled Forbidden Owners Signed-in users Everyone
    Enable
    Permission
    • Forbidden
    • Owners
    • Signed-in users
    Emoji Reply
    Enable
    Import from Dropbox Google Drive Gist Clipboard
       Owned this note    Owned this note      
    Published Linked with GitHub
    • Any changes
      Be notified of any changes
    • Mention me
      Be notified of mention me
    • Unsubscribe
    # An Application of Causing: Education and Wages This case study is based on research and data from Gary Koop and Justin L. Tobias, "Learning about Heterogeneity in Returns to Schooling", Journal of Applied Econometrics, Vol. 19, No. 7, 2004, pp. 827-849. It is from the empirical education literature. See [Koop, Tobias (2004) "Learning about Heterogeneity in Returns to Schooling"](https://www.economics.uci.edu/files/docs/workingpapers/2001-02/Tobias-07.pdf). This panel data set consists of 17,919 observations from N=2,178 individuals. It contains the wage earnings history for young workers in the U.S. from 1979 until 1993. The data are taken from the National Longitudinal Survey of Youth (NLSY). See [Koop, Tobias (2004) Labor Market Experience Data](http://people.stern.nyu.edu/wgreene/Econometrics/PanelDataSets.htm). # The Data The NLSY is a rich panel study of 12,686 individuals in total ranging in age from 14-22 as of the first interview date in 1979. It contains detailed information on the earnings and wages, educational attainment, family characteristics, and test scores of the sampled individuals. Koop and Tobias (2004) use a version of the NLSY which allows to obtain an earnings history until 1993. To abstract from selection issues in employment, and to remain consistent with the majority of the literature, they focus on the outcomes of white males in the NLSY. They restrict attention to those individuals who are active in the labor force for a good portion of each year, being at least 16 years of age in the given year, who reported working at least 30 weeks a year and at least 800 hours per year. They also deleted observations when the reported hourly wage is less than $1 or greater than $100 dollars per hour, when education decreases across time for an individual, or when the reported change in years of schooling over time is not consistent with the change in time from consecutive interviews. As such, they are careful to delete individuals whose education is clearly mis-measured. The dataset contains following variables in this order, the variables 0. to 4. being time varying and variables 5. to 9. being time invariant: 0. PERSONID = Person id (ranging from 1 to 2,178) # not used by us 1. EDUC = Education (years of schooling) 2. LOGWAGE = Log of hourly wage, at most recent job in 1993 dollars # we do not take log 3. POTEXPER = Potential experience (= AGE - EDUC - 5) 4. TIMETRND = Time trend (starting at 1 in 1979 and incrementing by year) # not used by us 5. ABILITY = Ability (cognitive ability measured by test score) 6. MOTHERED = Mother's education (highest grade completed, in years) 7. FATHERED = Father's education (highest grade completed, in years) 8. BRKNHOME = Dummy variable for residence in a broken home at age 14 9. SIBLINGS = Number of siblings The standardized test score is constructed from the 10 component tests of the Armed Services Vocational Aptitude Battery (ASVAB) administered to the NLSY participants in 1980. Since individuals varied in age, each of the 10 tests is first residualized on age, and the test score is defined as the first principal component of the standardized residuals. Koop and Tobias (2004) analyze the reduced form since heterogeneity in the reduced form will be of the identical form as that in the structural form. In contrast, we are interested in the structural causal relations. Since heterogeneity across individuals is not in our focus we ignore the person id. Further, we do not use the time dimension and therefore ignore the time trend. We reconstruct the AGE variable from the definition of POTEXPER = AGE - EDUC - 5 and use it as an exogenous variable. To estimate the effects, the Causing method always uses demeaned data. Just for the estimation of the bias terms the original level data are used. # The Model The model comprises just three equations (EDUC, POTEXPER, LOGWAGE). There are six exogenous variables (FATHERED, MOTHERED, SIBLINGS, BRKNHOME, ABILITY, AGE). All variables are observed, there are no latent variables. Our final variable of interest are the hourly wages. The parameter signs are based on domain knowledge and their values are set to be roughly consistent with the data. The model effects are used as starting values for estimation. 1. Education is a constant plus a positive effect for parents having been schooled for more than 12 years. Negative effects are expected in the case of siblings or a broken home. ```python EDUC = 13 + 0.1 * (FATHERED - 12) + 0.1 * (MOTHERED - 12) - 0.1 * SIBLINGS - 0.5 * BRKNHOME ``` 2. Potential experience simply are the years after schooling as defined by Koop and Tobias (2004). `POTEXPER = Max(AGE - EDUC - 5, 0)` 3. Logarithmic hourly wages are a base constant plus positive effects from education, potential experience and ability. `WAGE = 7 + 1 * (EDUC - 12) + 0.5 * POTEXPER + 1 * ABILITY` We expect education to increase by 0.1 years if the father's education increases by one year. The same should hold for the mother's education. Each sibling is expected to reduce duration of education by 0.1 years on average. If the young worker was raised in a broken home, we expect the education to be half a year shorter on average. Note that the equation constants just model the level forecasts, but they do not affect the effects, being derivatives independent of constants. Also note, that in SymPy some operators are special, e.g. Max() instead of max(). The observed potential experience is never negative, but this could occur in the estimation / optimization algorithm. See the [full model source code](https://github.com/realrate/Causing/blob/develop/causing/examples/models.py#L113-L203). # Results This is the causal graph for the Individual Mediation Effects (IME). ![Individual Mediation Effects (IME)](../images_education/IME_32.svg) We have a look on a single individual. Just for exposition we analyze the mediation effects of individual /observation no. 32. This worker is of age 25 and his strongest disadvantage is being so young and having low potential experience, reducing his wage by 52 Cents. However, he showed high ability in his test scores (+39 Cents). And due to his father's long schooling (16 years instead of average 12 years) his education is also above average (13.2 years instead of 12.6 years in median). In total, this worker achieves an hourly wage being 20 Cents above average. Note, that these effects are based on the hypothesized model, not on the estimated linear approximation. The total effects in the first row are composed of two different antogonistic direct effects. This is due to the mediating education variable directly passing the full effect to wage but passing the negative effect via potential experience and there being halved. Note that this path is due to the fact that longer education means shorter potential experience. In total, we expect from the model that one more year of education increases hourly wage by 50 Cents. One additional year of potential experience is expected to give the same effect. The total effects of a variable on WAGE are shown in the corresponding nodes of the graph. The total effects are split up over their outgoing edges, yielding the mediation effects shown on the edges. Just education has more than one outgoing edge to be interpreted in this way. The observed exogenous and predicted endogenous variables for individual no. 32 are summarized in the following table, sorted by their individual total effect on WAGE: Variable | Individual no. 32 | Median | Total Effect on WAGE --- | --- | --- | --- ABILITY | 0.44 | 0.21 | +0.39 EDUC | 13.20 | 12.60 | +0.34 FATHERED | 16.00 | 12.00 | +0.21 WAGE | 12.04 | 11.88 | +0.20 SIBLINGS | 2.00 | 3.00 | +0.06 BRKNHOME | 0.00 | 0.00 | 0.04 MOTHERED | 12.00 | 12.00 | 0.03 AGE | 25.00 | 26.00 | -0.52 POTEXPER | 6.80 | 8.50 | -0.86 This concludes the example usage of the Causing method with real world data. We analyzed how wages earned by young American workers are determined by their educational attainment, family characteristics, and test scores.

    Import from clipboard

    Paste your markdown or webpage here...

    Advanced permission required

    Your current role can only read. Ask the system administrator to acquire write and comment permission.

    This team is disabled

    Sorry, this team is disabled. You can't edit this note.

    This note is locked

    Sorry, only owner can edit this note.

    Reach the limit

    Sorry, you've reached the max length this note can be.
    Please reduce the content or divide it to more notes, thank you!

    Import from Gist

    Import from Snippet

    or

    Export to Snippet

    Are you sure?

    Do you really want to delete this note?
    All users will lose their connection.

    Create a note from template

    Create a note from template

    Oops...
    This template has been removed or transferred.
    Upgrade
    All
    • All
    • Team
    No template.

    Create a template

    Upgrade

    Delete template

    Do you really want to delete this template?
    Turn this template into a regular note and keep its content, versions, and comments.

    This page need refresh

    You have an incompatible client version.
    Refresh to update.
    New version available!
    See releases notes here
    Refresh to enjoy new features.
    Your user state has changed.
    Refresh to load new user state.

    Sign in

    Forgot password

    or

    By clicking below, you agree to our terms of service.

    Sign in via Facebook Sign in via Twitter Sign in via GitHub Sign in via Dropbox Sign in with Wallet
    Wallet ( )
    Connect another wallet

    New to HackMD? Sign up

    Help

    • English
    • 中文
    • Français
    • Deutsch
    • 日本語
    • Español
    • Català
    • Ελληνικά
    • Português
    • italiano
    • Türkçe
    • Русский
    • Nederlands
    • hrvatski jezik
    • język polski
    • Українська
    • हिन्दी
    • svenska
    • Esperanto
    • dansk

    Documents

    Help & Tutorial

    How to use Book mode

    Slide Example

    API Docs

    Edit in VSCode

    Install browser extension

    Contacts

    Feedback

    Discord

    Send us email

    Resources

    Releases

    Pricing

    Blog

    Policy

    Terms

    Privacy

    Cheatsheet

    Syntax Example Reference
    # Header Header 基本排版
    - Unordered List
    • Unordered List
    1. Ordered List
    1. Ordered List
    - [ ] Todo List
    • Todo List
    > Blockquote
    Blockquote
    **Bold font** Bold font
    *Italics font* Italics font
    ~~Strikethrough~~ Strikethrough
    19^th^ 19th
    H~2~O H2O
    ++Inserted text++ Inserted text
    ==Marked text== Marked text
    [link text](https:// "title") Link
    ![image alt](https:// "title") Image
    `Code` Code 在筆記中貼入程式碼
    ```javascript
    var i = 0;
    ```
    var i = 0;
    :smile: :smile: Emoji list
    {%youtube youtube_id %} Externals
    $L^aT_eX$ LaTeX
    :::info
    This is a alert area.
    :::

    This is a alert area.

    Versions and GitHub Sync
    Get Full History Access

    • Edit version name
    • Delete

    revision author avatar     named on  

    More Less

    Note content is identical to the latest version.
    Compare
      Choose a version
      No search result
      Version not found
    Sign in to link this note to GitHub
    Learn more
    This note is not linked with GitHub
     

    Feedback

    Submission failed, please try again

    Thanks for your support.

    On a scale of 0-10, how likely is it that you would recommend HackMD to your friends, family or business associates?

    Please give us some advice and help us improve HackMD.

     

    Thanks for your feedback

    Remove version name

    Do you want to remove this version name and description?

    Transfer ownership

    Transfer to
      Warning: is a public team. If you transfer note to this team, everyone on the web can find and read this note.

        Link with GitHub

        Please authorize HackMD on GitHub
        • Please sign in to GitHub and install the HackMD app on your GitHub repo.
        • HackMD links with GitHub through a GitHub App. You can choose which repo to install our App.
        Learn more  Sign in to GitHub

        Push the note to GitHub Push to GitHub Pull a file from GitHub

          Authorize again
         

        Choose which file to push to

        Select repo
        Refresh Authorize more repos
        Select branch
        Select file
        Select branch
        Choose version(s) to push
        • Save a new version and push
        • Choose from existing versions
        Include title and tags
        Available push count

        Pull from GitHub

         
        File from GitHub
        File from HackMD

        GitHub Link Settings

        File linked

        Linked by
        File path
        Last synced branch
        Available push count

        Danger Zone

        Unlink
        You will no longer receive notification when GitHub file changes after unlink.

        Syncing

        Push failed

        Push successfully