Announcement

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

  • using lag in cross section

    hello everyone , I am using cross-section data .
    my data is contained :
    --number of birth in 2020 ( monthly data )
    --unemployment in 2020( monthly data )
    --gdp in 2020( yearly data )
    --stringency data in 2020( monthly data )

    -- all of the monthly data are from January to Dec(12month)

    I want to see the response of birth after lock-downing in some countries, but it is a cross-section and for 2020.

    how can I use a 9-month lag of dependent variable in my regression? because assuming the lockdown happens in January, so I want to see the response after 9-month.
    but in cross-section I cannot use the "tsset" to declare time series .

    this is part of my dataset ":
    Code:
    Country    year    GDP    Country1    GDP1    id    month    birth    unem    school_closing    Workplace_closing    Cancel_publicevent
    HUN    2020    -3.1    HUN    -3.1    28    April    2853    11.1    2.9333333    2    2
    CONNECTICUT    2020    98.746    CONNECTICUT    98.746    12    April    2822    8.6    3    3    2
    NEW YORK    2020    105.97    NEW YORK    105.97    54    April    4533        2.9333333    2.9    2
    HAWAII    2020    102.967    HAWAII    102.967    26    April    10769    16.5    3    3    2
    BGR    2020    -4    BGR    -4    7    April    4712    5.9    3    1    2

    i am so thankful to recieve your guidance .

    many thanks for your valuable time and advice .

    best regards ,
    Last edited by Khati Zolfaghari; 17 Aug 2021, 04:17.

  • #2
    hello to everyone, I hope I receive your advice so soon. I need your assistance for the question that I mention.

    To estimate the short-term impact of COVID-19 on fertility rates we use cross-sectional data for 2020 , and the following empirical specification:

    Code:
    yi=a+bxi+cmi+dNi+rfi+e
    where yi is fertility rate for country (2020), xi is set of control variable included (GDP per capita, unemployment), NI is GDP growth , NI is average measure of covid-ristrictoins, and FI is 9month lag of fertility
    [IMG]file:///C:/Users/khatereh/AppData/Local/Temp/msohtmlclip1/01/clip_image006.png[/IMG]

    my data is contained :

    --number of birth in 2020 ( monthly data )

    --unemployment in 2020( monthly data )

    --gdp and gdp per capita in 2020( yearly data )

    --stringency data in 2020( monthly data )

    -- all of the monthly data are from January to Dec(12month)

    --my adviser told me it is cross -section but my problem is how in cross-section we use lag of dependent variable ?

    I want to see the response of birth after lock-downing in some countries, but it is a cross-section and for 2020.

    how can I use a 9-month lag of dependent variable in my regression? because assuming the lockdown happens in January, so I want to see the response after 9-month.
    but in cross-section I cannot use the "tsset" to declare time series .



    best regards.

    Comment


    • #3
      For cross-sectional data you will use the xtset command rather than the tsset command.

      Comment

      Working...
      X