Announcement

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

  • Generate New Variable = Average Price Per Type Per Year

    I am using Stata version 15.1 and I have 47 variables and 1,010 observations in my dataset. I am doing educational research with 112 colleges included (This is setup as a panel data set). However, I have expanded it so that I can capture the average prices for all colleges in set categories. I now have 69,999 observations in my data set.

    My goal:
    I am trying to create a variable that will represent the average price of colleges within a year range on my panel data set. I need to generate a yearly average for the following categories of colleges - 1—Public, four-year or above 2—Private not-for-profit, four-year or above 3—Private for-profit, four-year or above 4—Public, two-year. I have all the individual colleges in the data set and I know their prices. The variable for the price I want to average is "avgprice_per_year."

    My first thought was to do the following:

    sort unitid year
    egen avgprice_pub_4yr_year=mean(avg_tuition_fees_ft), by(year)
    but this only generates the average across all colleges for the year. I want it to generate a new variable that shows the average price for each type of college (1—Public, four-year or above 2—Private not-for-profit, four-year or above 3—Private for-profit, four-year or above 4—Public, two-year). So I would then have a new variable that is generated that cumulates all the Public, four-year colleges prices and adds this to every instance of the year 2009 for example. I would need to do this four times to then generate each of these four variables to then later use in my regression to see how alternative college pricing may impact the enrollment rate.


  • #2
    I don't understand exactly what you want. It is unclear whether you want a single variable whose value is the average price in a given year in the type of college that the observation represents, or if you want four separate variables, one for each type. And you also show no example data, so I have to imagine what you are working with to start. So I will offer you an imaginary solution:
    Code:
    by college_type year, sort: egen wanted = mean(avg_tuition_fees_ft)
    This is the one-variable solution: in any observation its value will be the average price for all colleges that year of that type. Also, as there is no information about the name of the variable that designates the 4 college types, I've just called it college_type. Modify accordingly.

    To maximize your chances of getting a response that actually works with your data, you should always show example data when asking for help with code. And that should always be done by using the -dataex- command. If your version 15.1 is fully updated, -dataex- is already part of your official Stata installation. If not, run -ssc install dataex- to get it. Either way, run -help dataex- to read the simple instructions for using it. -dataex- will save you time; it is easier and quicker than typing out tables. It includes complete information about aspects of the data that are often critical to answering your question but cannot be seen from tabular displays or screenshots. It also makes it possible for those who want to help you to create a faithful representation of your example to try out their code, which in turn makes it more likely that their answer will actually work in your data.

    Comment


    • #3
      Clyde,

      This is excellent, but I am indeed looking for four variables with one for each type. This will allow me to see how the average prices by "sector" impact the variables I am studying.

      I do apologize for not utilizing dataex. I certainly do want as much and as precise of a solution as possible, so I will do my best. As I have now reviewed dataex it appears that I cannot send my full data set since that is too large. This being the case I limited to the key variables that should impact my specific problem: sector, year, unitid (individual college name), avg_tuition_fees_ft.

      This is the dataex output and I would greatly appreciate your assessment on pulling the average prices per year per sector into a new variable for each of the four sectors.

      Code:
      * Example generated by -dataex-. To install: ssc install dataex
      clear
      input float sector int year long unitid double avg_tuition_fees_ft
      1 2008 100654  4072
      1 2009 100654  4692
      1 2010 100654  5800
      1 2011 100654  6828
      1 2012 100654  7182
      1 2013 100654  7182
      1 2014 100654  9096
      1 2015 100654  9366
      1 2016 100654  9366
      1 2008 100663  4664
      1 2009 100663  5096
      1 2010 100663  5806
      1 2011 100663  6264
      1 2012 100663  6798
      1 2013 100663  7206
      1 2014 100663  7510
      1 2015 100663  7766
      1 2016 100663  8040
      2 2008 100690  6600
      2 2009 100690  8000
      2 2010 100690  8360
      2 2011 100690  8720
      2 2012 100690  8180
      2 2013 100690  7720
      2 2014 100690  6900
      2 2015 100690 10860
      2 2016 100690 10180
      1 2008 100706  5952
      1 2009 100706  6510
      1 2010 100706  7492
      1 2011 100706  8094
      1 2012 100706  8794
      1 2013 100706  9192
      1 2014 100706  9158
      1 2015 100706  9128
      1 2016 100706  9842
      1 2008 100724  5460
      1 2009 100724  6468
      1 2010 100724  7164
      1 2011 100724  8082
      1 2012 100724  7932
      1 2013 100724  8720
      1 2014 100724  8720
      1 2015 100724  8720
      1 2016 100724  9220
      1 2008 100751  6400
      1 2009 100751  7000
      1 2010 100751  7900
      1 2011 100751  8600
      1 2012 100751  9200
      1 2013 100751  9450
      1 2014 100751  9826
      1 2015 100751 10170
      1 2016 100751 10470
      4 2008 100760  2700
      4 2009 100760  2700
      4 2010 100760  3270
      4 2011 100760  2700
      4 2012 100760  4140
      4 2013 100760  4200
      4 2014 100760  3491
      4 2015 100760  4320
      4 2016 100760  4380
      1 2008 100830  5580
      1 2009 100830  5970
      1 2010 100830  6620
      1 2011 100830  7580
      1 2012 100830  8150
      1 2013 100830  8750
      1 2014 100830  9080
      1 2015 100830  9350
      1 2016 100830  9640
      1 2008 100858  6500
      1 2009 100858  6972
      1 2010 100858  7900
      1 2011 100858  8698
      1 2012 100858  9446
      1 2013 100858  9852
      1 2014 100858 10200
      1 2015 100858 10424
      1 2016 100858 10696
      2 2008 100937 25586
      2 2009 100937 26746
      2 2010 100937 27890
      2 2011 100937 29290
      2 2012 100937 30690
      2 2013 100937 30690
      2 2014 100937 31888
      2 2015 100937 33128
      2 2016 100937 34448
      4 2008 101028  2700
      4 2009 101028  2940
      4 2010 101028  3510
      4 2011 101028  4140
      4 2012 101028  4200
      4 2013 101028  4260
      4 2014 101028  4320
      4 2015 101028  4380
      4 2016 101028  4254
      2 2008 101073  6264
      end
      label values sector sectordf
      label def sectordf 1 "Public, four-year or above", modify
      label def sectordf 2 "Private not-for-profit, four-year or above", modify
      label def sectordf 4 "Public, two-year", modify
      label values year yeardf
      label values unitid unitiddf
      label values avg_tuition_fees_ft tuition_fees_ftdf
      Thank you very much for looking at this!

      Comment


      • #4
        Code:
        sort year
        forval sec = 1/4 { 
            by year: egen wanted_`sec' = mean(avg_tuition_fees_ft*(sector==`sec'))
        }

        Comment


        • #5
          #3 Indeed; the whole point of dataex is that giving an example should always be possible and is commonly sufficient to make a problem clear.

          #4 is right in spirit -- Hemanshu Kumar wants to loop, working with each sector in turn, ignoring the others -- but wrong in detail. It takes a mean over the values in each sector and zeros for the others. Taking zero isn't ignoring the others.

          Code demonstration:

          Code:
          * Example generated by -dataex-. To install: ssc install dataex
          clear
          input float sector int year long unitid double avg_tuition_fees_ft
          1 2008 100654  4072
          1 2009 100654  4692
          1 2010 100654  5800
          1 2011 100654  6828
          1 2012 100654  7182
          1 2013 100654  7182
          1 2014 100654  9096
          1 2015 100654  9366
          1 2016 100654  9366
          1 2008 100663  4664
          1 2009 100663  5096
          1 2010 100663  5806
          1 2011 100663  6264
          1 2012 100663  6798
          1 2013 100663  7206
          1 2014 100663  7510
          1 2015 100663  7766
          1 2016 100663  8040
          2 2008 100690  6600
          2 2009 100690  8000
          2 2010 100690  8360
          2 2011 100690  8720
          2 2012 100690  8180
          2 2013 100690  7720
          2 2014 100690  6900
          2 2015 100690 10860
          2 2016 100690 10180
          1 2008 100706  5952
          1 2009 100706  6510
          1 2010 100706  7492
          1 2011 100706  8094
          1 2012 100706  8794
          1 2013 100706  9192
          1 2014 100706  9158
          1 2015 100706  9128
          1 2016 100706  9842
          1 2008 100724  5460
          1 2009 100724  6468
          1 2010 100724  7164
          1 2011 100724  8082
          1 2012 100724  7932
          1 2013 100724  8720
          1 2014 100724  8720
          1 2015 100724  8720
          1 2016 100724  9220
          1 2008 100751  6400
          1 2009 100751  7000
          1 2010 100751  7900
          1 2011 100751  8600
          1 2012 100751  9200
          1 2013 100751  9450
          1 2014 100751  9826
          1 2015 100751 10170
          1 2016 100751 10470
          4 2008 100760  2700
          4 2009 100760  2700
          4 2010 100760  3270
          4 2011 100760  2700
          4 2012 100760  4140
          4 2013 100760  4200
          4 2014 100760  3491
          4 2015 100760  4320
          4 2016 100760  4380
          1 2008 100830  5580
          1 2009 100830  5970
          1 2010 100830  6620
          1 2011 100830  7580
          1 2012 100830  8150
          1 2013 100830  8750
          1 2014 100830  9080
          1 2015 100830  9350
          1 2016 100830  9640
          1 2008 100858  6500
          1 2009 100858  6972
          1 2010 100858  7900
          1 2011 100858  8698
          1 2012 100858  9446
          1 2013 100858  9852
          1 2014 100858 10200
          1 2015 100858 10424
          1 2016 100858 10696
          2 2008 100937 25586
          2 2009 100937 26746
          2 2010 100937 27890
          2 2011 100937 29290
          2 2012 100937 30690
          2 2013 100937 30690
          2 2014 100937 31888
          2 2015 100937 33128
          2 2016 100937 34448
          4 2008 101028  2700
          4 2009 101028  2940
          4 2010 101028  3510
          4 2011 101028  4140
          4 2012 101028  4200
          4 2013 101028  4260
          4 2014 101028  4320
          4 2015 101028  4380
          4 2016 101028  4254
          2 2008 101073  6264
          end
          label values sector sectordf
          label def sectordf 1 "Public, four-year or above", modify
          label def sectordf 2 "Private not-for-profit, four-year or above", modify
          label def sectordf 4 "Public, two-year", modify
          label values year yeardf
          label values unitid unitiddf
          label values avg_tuition_fees_ft tuition_fees_ftdf
          
          sort year
          forval sec = 1/4 { 
              by year: egen wanted_`sec' = mean(avg_tuition_fees_ft*(sector==`sec'))
          }
          
          tabdisp year, c(wanted_?)
          
          table year sector, stat(mean avg_tuition_fees_ft)
          Results:


          Code:
          . tabdisp year, c(wanted_?)
          
          ----------------------------------------------------------
               year |   wanted_1    wanted_2    wanted_3    wanted_4
          ----------+-----------------------------------------------
               2008 |       3219    3204.167           0         450
               2009 |   3882.545    3158.727           0    512.7273
               2010 |   4425.636    3295.455           0    616.3636
               2011 |   4922.364    3455.455           0    621.8182
               2012 |   5227.455    3533.636           0    758.1818
               2013 |   5486.545    3491.818           0    769.0909
               2014 |   5780.909    3526.182           0    710.0909
               2015 |   5902.182    3998.909           0    790.9091
               2016 |   6115.818    4057.091           0    784.9091
          ----------------------------------------------------------
          
          . 
          . table year sector, stat(mean avg_tuition_fees_ft)
          
          ----------------------------------------------------------------------------------------------------------------
                  |                                                  sector                                               
                  |  Public, four-year or above   Private not-for-profit, four-year or above   Public, two-year      Total
          --------+-------------------------------------------------------------------------------------------------------
          year    |                                                                                                       
            2008  |                    5518.286                                     12816.67               2700   6873.167
            2009  |                    6101.143                                        17373               2820       7554
            2010  |                    6954.571                                        18125               3390   8337.455
            2011  |                    7735.143                                        19005               3420   8999.636
            2012  |                    8214.571                                        19435               4170   9519.273
            2013  |                    8621.714                                        19205               4230   9747.455
            2014  |                    9084.286                                        19394             3905.5   10017.18
            2015  |                    9274.857                                        21994               4350      10692
            2016  |                    9610.571                                        22314               4317   10957.82
            Total |                    7901.683                                     18533.68           3700.278    9165.51
          ----------------------------------------------------------------------------------------------------------------
          
          .
          You could do any of these:

          #1
          Code:
          sort year
          forval sec = 1/4 {
              by year: egen wanted1_`sec' = mean(avg_tuition_fees_ft) if sector==`sec'
          }
          #2

          Code:
          bysort sector year : egen wanted2_ = mean(avg_tuition_fees_ft)
          separate wanted2_, by(sector) veryshort label
          #3

          Code:
          sort year
          forval sec = 1/4 {
              by year: egen wanted3_`sec' = mean(cond(sector == `sec', avg_tuition_fees_ft, .))
          }

          #1 and #2 are pretty much equivalent, but #3 is subtly different.


          Comment


          • #6
            Nick Cox Ugh, thank you so much for catching the error in #4!

            Comment


            • #7
              Nick Cox a couple small things:

              I think you mean
              Code:
              separate wanted2_, by(sector) veryshort
              since otherwise we get the error option label not allowed

              Also, I would never have known about the veryshort option had it not been for seeing it in your posts on this forum. Any idea why it is undocumented?!

              Comment


              • #8
                In #5 veryshortlabel is all one word to Stata.

                Comment


                • #9
                  #7 The veryshortlabel option is undocumented because I asked for it on those terms.

                  I wrote separate with William Gould, then President of StataCorp, first as a community-contributed command. Then later it was folded into Stata as an official command. Code, help, and manual entry were all pretty well sorted out when I realised that an extra option veryshortlabel would be a good idea. This was a trivial hit to the code but I persuaded StataCorp that it would be fairly painless for them to add the option, as there was no compulsion for a revision to the documentation. If people asked about even shorter labels for the new variables, then at least the notional author of separate knew to recommend that. .

                  Conversely, it is documented insofar as it is mentioned in https://www.stata-journal.com/articl...article=gr0023 https://www.stata-journal.com/articl...article=gr0037 and other places too.

                  Comment


                  • #10
                    Ah, I see. Thanks for explaining!

                    Comment


                    • #11
                      Thank you very much Nick Cox and Hemanshu Kumar for your help with this. This is such a huge help for me and the code is brilliant!

                      However, there is still one nuance that I am unsure how best to solve. I would like each of the variables to also fill values for years that other institutions' data is listed. For example, this code brilliantly pulls the average for the sector that the college is in, but it only lists this data for the colleges that are in that very sector. If I look at the raw data all other types of data are blank except the average for that institution sector for the given year. I will put the data ex for this data below and I would be most grateful to have you look at this again. My hope is to look at the colleges in the type I am studying and to then account for the average price by sector for comparison, but if I drop the other colleges as I narrow my data set that data is not present anymore.

                      Example of how this is working right now after I trim to the institutional type I am studying. This shows how the only average tuition fees amount that is filling is their specific sector:

                      Code:
                      * Example generated by -dataex-. To install: ssc install dataex
                      clear
                      input long unitid int year double avg_tuition_fees_ft byte(sector sector_1 sector_2) float(sector_3 sector_4 sector_5 sector_6 sector_7 sector_8 sector_9)
                      101189 2008 12700 2 . . . 19520.313 . . . . .
                      101189 2009 13690 2 . . .  20407.69 . . . . .
                      101189 2010 14820 2 . . .  21402.32 . . . . .
                      101189 2011 15880 2 . . .  22200.95 . . . . .
                      101189 2012 17380 2 . . . 23126.385 . . . . .
                      101189 2013 18230 2 . . .  23792.57 . . . . .
                      101189 2014 18750 2 . . . 24454.877 . . . . .
                      101189 2015 19280 2 . . .  25185.45 . . . . .
                      101189 2016 20130 2 . . .  26062.97 . . . . .
                      105899 2008 14440 2 . . . 19520.313 . . . . .
                      105899 2009 15177 2 . . .  20407.69 . . . . .
                      105899 2010 16174 2 . . .  21402.32 . . . . .
                      105899 2011 18968 2 . . .  22200.95 . . . . .
                      105899 2012 21040 2 . . . 23126.385 . . . . .
                      105899 2013 21832 2 . . .  23792.57 . . . . .
                      105899 2014 22466 2 . . . 24454.877 . . . . .
                      105899 2015 23110 2 . . .  25185.45 . . . . .
                      105899 2016 23896 2 . . .  26062.97 . . . . .
                      107044 2008 13130 2 . . . 19520.313 . . . . .
                      107044 2009 13580 2 . . .  20407.69 . . . . .
                      107044 2010 14040 2 . . .  21402.32 . . . . .
                      107044 2011 14610 2 . . .  22200.95 . . . . .
                      107044 2012 15240 2 . . . 23126.385 . . . . .
                      107044 2013 16170 2 . . .  23792.57 . . . . .
                      107044 2014 17040 2 . . . 24454.877 . . . . .
                      107044 2015 17805 2 . . .  25185.45 . . . . .
                      107044 2016 18440 2 . . .  26062.97 . . . . .
                      107141 2008 18066 2 . . . 19520.313 . . . . .
                      107141 2009 18880 2 . . .  20407.69 . . . . .
                      107141 2010 19730 2 . . .  21402.32 . . . . .
                      107141 2011 20766 2 . . .  22200.95 . . . . .
                      107141 2012 21774 2 . . . 23126.385 . . . . .
                      107141 2013 22734 2 . . .  23792.57 . . . . .
                      107141 2014 23588 2 . . . 24454.877 . . . . .
                      107141 2015 24468 2 . . .  25185.45 . . . . .
                      107141 2016 25324 2 . . .  26062.97 . . . . .
                      109785 2008 26640 2 . . . 19520.313 . . . . .
                      109785 2009 27750 2 . . .  20407.69 . . . . .
                      109785 2010 28800 2 . . .  21402.32 . . . . .
                      109785 2011 29940 2 . . .  22200.95 . . . . .
                      109785 2012 31076 2 . . . 23126.385 . . . . .
                      109785 2013 32306 2 . . .  23792.57 . . . . .
                      109785 2014 33096 2 . . . 24454.877 . . . . .
                      109785 2015 34754 2 . . .  25185.45 . . . . .
                      109785 2016 36120 2 . . .  26062.97 . . . . .
                      110097 2008 26424 2 . . . 19520.313 . . . . .
                      110097 2009 27744 2 . . .  20407.69 . . . . .
                      110097 2010 28852 2 . . .  21402.32 . . . . .
                      110097 2011 29908 2 . . .  22200.95 . . . . .
                      110097 2012 31004 2 . . . 23126.385 . . . . .
                      110097 2013 32142 2 . . .  23792.57 . . . . .
                      110097 2014 33322 2 . . . 24454.877 . . . . .
                      110097 2015 34498 2 . . .  25185.45 . . . . .
                      110097 2016 36696 2 . . .  26062.97 . . . . .
                      110361 2008 22330 2 . . . 19520.313 . . . . .
                      110361 2009 23266 2 . . .  20407.69 . . . . .
                      110361 2010 24654 2 . . .  21402.32 . . . . .
                      110361 2011 25808 2 . . .  22200.95 . . . . .
                      110361 2012 26900 2 . . . 23126.385 . . . . .
                      110361 2013 28122 2 . . .  23792.57 . . . . .
                      110361 2014 29422 2 . . . 24454.877 . . . . .
                      110361 2015 30384 2 . . .  25185.45 . . . . .
                      110361 2016 31372 2 . . .  26062.97 . . . . .
                      112075 2008 23930 2 . . . 19520.313 . . . . .
                      112075 2009 24950 2 . . .  20407.69 . . . . .
                      112075 2010 26000 2 . . .  21402.32 . . . . .
                      112075 2011 27300 2 . . .  22200.95 . . . . .
                      112075 2012 28500 2 . . . 23126.385 . . . . .
                      112075 2013 29630 2 . . .  23792.57 . . . . .
                      112075 2014 30640 2 . . . 24454.877 . . . . .
                      112075 2015 31690 2 . . .  25185.45 . . . . .
                      112075 2016 32780 2 . . .  26062.97 . . . . .
                      112084 2008 20980 2 . . . 19520.313 . . . . .
                      112084 2009 21610 2 . . .  20407.69 . . . . .
                      112084 2010 22692 2 . . .  21402.32 . . . . .
                      112084 2011 23814 2 . . .  22200.95 . . . . .
                      112084 2012 25108 2 . . . 23126.385 . . . . .
                      112084 2013 25888 2 . . .  23792.57 . . . . .
                      112084 2014 27090 2 . . . 24454.877 . . . . .
                      112084 2015 19791 2 . . .  25185.45 . . . . .
                      112084 2016 21650 2 . . .  26062.97 . . . . .
                      114813 2008 23202 2 . . . 19520.313 . . . . .
                      114813 2009 23898 2 . . .  20407.69 . . . . .
                      114813 2010 23904 2 . . .  21402.32 . . . . .
                      114813 2011 24790 2 . . .  22200.95 . . . . .
                      114813 2012 25336 2 . . . 23126.385 . . . . .
                      114813 2013 25716 2 . . .  23792.57 . . . . .
                      114813 2014 26638 2 . . . 24454.877 . . . . .
                      114813 2015 27954 2 . . .  25185.45 . . . . .
                      114813 2016 29370 2 . . .  26062.97 . . . . .
                      117104 2008 11650 2 . . . 19520.313 . . . . .
                      117104 2009 12500 2 . . .  20407.69 . . . . .
                      117104 2010 12560 2 . . .  21402.32 . . . . .
                      117104 2011 12500 2 . . .  22200.95 . . . . .
                      117104 2012 13100 2 . . . 23126.385 . . . . .
                      117104 2013 12500 2 . . .  23792.57 . . . . .
                      117104 2014 12860 2 . . . 24454.877 . . . . .
                      117104 2015 13320 2 . . .  25185.45 . . . . .
                      117104 2016 14138 2 . . .  26062.97 . . . . .
                      120537 2008 21890 2 . . . 19520.313 . . . . .
                      end
                      label values unitid unitiddf
                      label values year yeardf
                      label values avg_tuition_fees_ft tuition_fees_ftdf
                      label values sector sectordf
                      label def sectordf 2 "Private not-for-profit, four-year or above", modify

                      This example shows it with all colleges included and it highlights the problem I want to solve. The sector type shows the average prices for that sector, but it does not show the prices for other sectors during that same time period.

                      Code:
                      * Example generated by -dataex-. To install: ssc install dataex
                      clear
                      input long unitid int year double avg_tuition_fees_ft float sector byte(sector_1 sector_2) float(sector_3 sector_4 sector_5 sector_6 sector_7 sector_8 sector_9)
                      100654 2008  4072 1 . . 5922.394         . .         . . . .
                      100654 2009  4692 1 . . 6265.079         . .         . . . .
                      100654 2010  5800 1 . . 6608.007         . .         . . . .
                      100654 2011  6828 1 . . 7072.479         . .         . . . .
                      100654 2012  7182 1 . . 7360.464         . .         . . . .
                      100654 2013  7182 1 . . 7573.859         . .         . . . .
                      100654 2014  9096 1 . . 7750.858         . .         . . . .
                      100654 2015  9366 1 . . 7991.114         . .         . . . .
                      100654 2016  9366 1 . . 8037.394         . .         . . . .
                      100663 2008  4664 1 . . 5922.394         . .         . . . .
                      100663 2009  5096 1 . . 6265.079         . .         . . . .
                      100663 2010  5806 1 . . 6608.007         . .         . . . .
                      100663 2011  6264 1 . . 7072.479         . .         . . . .
                      100663 2012  6798 1 . . 7360.464         . .         . . . .
                      100663 2013  7206 1 . . 7573.859         . .         . . . .
                      100663 2014  7510 1 . . 7750.858         . .         . . . .
                      100663 2015  7766 1 . . 7991.114         . .         . . . .
                      100663 2016  8040 1 . . 8037.394         . .         . . . .
                      100690 2008  6600 2 . .        . 19520.313 .         . . . .
                      100690 2009  8000 2 . .        .  20407.69 .         . . . .
                      100690 2010  8360 2 . .        .  21402.32 .         . . . .
                      100690 2011  8720 2 . .        .  22200.95 .         . . . .
                      100690 2012  8180 2 . .        . 23126.385 .         . . . .
                      100690 2013  7720 2 . .        .  23792.57 .         . . . .
                      100690 2014  6900 2 . .        . 24454.877 .         . . . .
                      100690 2015 10860 2 . .        .  25185.45 .         . . . .
                      100690 2016 10180 2 . .        .  26062.97 .         . . . .
                      100706 2008  5952 1 . . 5922.394         . .         . . . .
                      100706 2009  6510 1 . . 6265.079         . .         . . . .
                      100706 2010  7492 1 . . 6608.007         . .         . . . .
                      100706 2011  8094 1 . . 7072.479         . .         . . . .
                      100706 2012  8794 1 . . 7360.464         . .         . . . .
                      100706 2013  9192 1 . . 7573.859         . .         . . . .
                      100706 2014  9158 1 . . 7750.858         . .         . . . .
                      100706 2015  9128 1 . . 7991.114         . .         . . . .
                      100706 2016  9842 1 . . 8037.394         . .         . . . .
                      100724 2008  5460 1 . . 5922.394         . .         . . . .
                      100724 2009  6468 1 . . 6265.079         . .         . . . .
                      100724 2010  7164 1 . . 6608.007         . .         . . . .
                      100724 2011  8082 1 . . 7072.479         . .         . . . .
                      100724 2012  7932 1 . . 7360.464         . .         . . . .
                      100724 2013  8720 1 . . 7573.859         . .         . . . .
                      100724 2014  8720 1 . . 7750.858         . .         . . . .
                      100724 2015  8720 1 . . 7991.114         . .         . . . .
                      100724 2016  9220 1 . . 8037.394         . .         . . . .
                      100751 2008  6400 1 . . 5922.394         . .         . . . .
                      100751 2009  7000 1 . . 6265.079         . .         . . . .
                      100751 2010  7900 1 . . 6608.007         . .         . . . .
                      100751 2011  8600 1 . . 7072.479         . .         . . . .
                      100751 2012  9200 1 . . 7360.464         . .         . . . .
                      100751 2013  9450 1 . . 7573.859         . .         . . . .
                      100751 2014  9826 1 . . 7750.858         . .         . . . .
                      100751 2015 10170 1 . . 7991.114         . .         . . . .
                      100751 2016 10470 1 . . 8037.394         . .         . . . .
                      100760 2008  2700 4 . .        .         . .  2820.107 . . .
                      100760 2009  2700 4 . .        .         . .   2956.39 . . .
                      100760 2010  3270 4 . .        .         . .   3165.12 . . .
                      100760 2011  2700 4 . .        .         . .  3381.933 . . .
                      100760 2012  4140 4 . .        .         . . 3519.0115 . . .
                      100760 2013  4200 4 . .        .         . .   3661.56 . . .
                      100760 2014  3491 4 . .        .         . .  3777.615 . . .
                      100760 2015  4320 4 . .        .         . .  3924.161 . . .
                      100760 2016  4380 4 . .        .         . . 4075.6096 . . .
                      100830 2008  5580 1 . . 5922.394         . .         . . . .
                      100830 2009  5970 1 . . 6265.079         . .         . . . .
                      100830 2010  6620 1 . . 6608.007         . .         . . . .
                      100830 2011  7580 1 . . 7072.479         . .         . . . .
                      100830 2012  8150 1 . . 7360.464         . .         . . . .
                      100830 2013  8750 1 . . 7573.859         . .         . . . .
                      100830 2014  9080 1 . . 7750.858         . .         . . . .
                      100830 2015  9350 1 . . 7991.114         . .         . . . .
                      100830 2016  9640 1 . . 8037.394         . .         . . . .
                      100858 2008  6500 1 . . 5922.394         . .         . . . .
                      100858 2009  6972 1 . . 6265.079         . .         . . . .
                      100858 2010  7900 1 . . 6608.007         . .         . . . .
                      100858 2011  8698 1 . . 7072.479         . .         . . . .
                      100858 2012  9446 1 . . 7360.464         . .         . . . .
                      100858 2013  9852 1 . . 7573.859         . .         . . . .
                      100858 2014 10200 1 . . 7750.858         . .         . . . .
                      100858 2015 10424 1 . . 7991.114         . .         . . . .
                      100858 2016 10696 1 . . 8037.394         . .         . . . .
                      100937 2008 25586 2 . .        . 19520.313 .         . . . .
                      100937 2009 26746 2 . .        .  20407.69 .         . . . .
                      100937 2010 27890 2 . .        .  21402.32 .         . . . .
                      100937 2011 29290 2 . .        .  22200.95 .         . . . .
                      100937 2012 30690 2 . .        . 23126.385 .         . . . .
                      100937 2013 30690 2 . .        .  23792.57 .         . . . .
                      100937 2014 31888 2 . .        . 24454.877 .         . . . .
                      100937 2015 33128 2 . .        .  25185.45 .         . . . .
                      100937 2016 34448 2 . .        .  26062.97 .         . . . .
                      101028 2008  2700 4 . .        .         . .  2820.107 . . .
                      101028 2009  2940 4 . .        .         . .   2956.39 . . .
                      101028 2010  3510 4 . .        .         . .   3165.12 . . .
                      101028 2011  4140 4 . .        .         . .  3381.933 . . .
                      101028 2012  4200 4 . .        .         . . 3519.0115 . . .
                      101028 2013  4260 4 . .        .         . .   3661.56 . . .
                      101028 2014  4320 4 . .        .         . .  3777.615 . . .
                      101028 2015  4380 4 . .        .         . .  3924.161 . . .
                      101028 2016  4254 4 . .        .         . . 4075.6096 . . .
                      101073 2008  6264 2 . .        . 19520.313 .         . . . .
                      end
                      label values unitid unitiddf
                      label values year yeardf
                      label values avg_tuition_fees_ft tuition_fees_ftdf
                      label values sector sectordf
                      label def sectordf 1 "Public, four-year or above", modify
                      label def sectordf 2 "Private not-for-profit, four-year or above", modify
                      label def sectordf 4 "Public, two-year", modify
                      I am very grateful for your help and assistance. If there is more information I need to provide please let me know. But thank you for looking at this!

                      Comment


                      • #12
                        Code:
                        sort year
                        forval sec = 1/9 { 
                            by year: egen _wanted_`sec' = mean(avg_tuition_fees_ft) if sector==`sec'
                            by year: egen wanted_`sec' = max(_wanted_`sec')
                        }
                        drop _wanted*

                        Comment


                        • #13
                          Hemanshu Kumar thank you very much for the additional code! This does seem to work for the data I am looking at. Do you know how I can carry the labels over with the variables? The code I used from Nick Cox pulled the labels across when it split the variables.

                          Nick Cox I used the code below with the name change of "sector_?". However, I am now noticing that it did not split the data correctly and has some peculiar outcomes.

                          This was the code I used from you with the modification of sector_ .

                          bysort sector year : egen sector_ = mean(avg_tuition_fees_ft)
                          separate sector_, by(sector) veryshortlabel
                          Peculiar outcomes:
                          1. The new variables and labels do not match the Sector.
                          • For example when it parsed the data into the sector_?'s the new sector_9 has a label of "Public, less-than two-year" where all the average tuition values fill. However, the colleges in this sector are actually part of value 7. This being the case I would expect the value and data to be placed in sector_7.
                          • When I ran the code from Hemanshu Kumar it placed this in wanted_7 which matches.
                          2. The values for sector_9 not only fill, but also values for other sectors for the same unit being studied. Since the colleges must fall into one sector or the other I was unsure why I would see any other values filled except those that correspond to their sector.

                          3. When I exported to Excel and just hadn calculated for all of 2016 for sector 7 I show 6,529.891, but the code is showing 6170. Can you help me see what I am missing? I will put the dataex at the bottom for 2016 and sector 7, but it is trimming the data at 100 observations.

                          -->I know, Nick Cox this is something I have done or messed up with your code. But I would really appreciate your insight!

                          I now added your code and as I look through the data it works well, but it places the data in the wrong sector. I went ahead and included all 11, but otherwise left the code as you sent it.

                          Here is the slightly modified code I am now using from Hemanshu Kumar

                          sort year
                          forval sec = 1/11 {
                          by year: egen _wanted_`sec' = mean(avg_tuition_fees_ft) if sector==`sec'
                          by year: egen wanted_`sec' = max(_wanted_`sec')
                          }
                          drop _wanted*
                          I do apologize if it is annoying that there are so many posts below. I was just doing my best to provide all the details necessary to get some feedback and was limited on characters to post. If you need anything else please let me know. I am very grateful for the assistance that has been offered and for continued support in figuring out the final few nuances.
                          Last edited by Rocky Christensen; 05 Oct 2022, 17:40.

                          Comment


                          • #14
                            Here is my updated dataex which will hopefully help in diagnosing. I limited to the year 2016 for sector 7 to make this easier to analyze the issues I mentioned.

                            Code:
                            * Example generated by -dataex-. To install: ssc install dataex
                            clear
                            input long unitid int year double avg_tuition_fees_ft float sector byte(sector_1 sector_2) float(sector_3 sector_4 sector_5 sector_6 sector_7 sector_8 sector_9 wanted_1 wanted_2 wanted_3 wanted_4 wanted_5 wanted_6 wanted_7 wanted_8 wanted_9)
                            102711 2016        . 7 . . . . .  3719.588 . . 6170.095 8037.394 26062.97 15333.85 4075.6096 13207.118 14619.66 6170.095 12552.833 13155.76
                            106829 2016     1350 7 . . . . .         . . . 6170.095 8037.394 26062.97 15333.85 4075.6096 13207.118 14619.66 6170.095 12552.833 13155.76
                            107488 2016     2195 7 . . . . .         . . . 6170.095 8037.394 26062.97 15333.85 4075.6096 13207.118 14619.66 6170.095 12552.833 13155.76
                            112367 2016        . 7 . . . . .         . . . 6170.095 8037.394 26062.97 15333.85 4075.6096 13207.118 14619.66 6170.095 12552.833 13155.76
                            127158 2016     5520 7 . . . . .         . . . 6170.095 8037.394 26062.97 15333.85 4075.6096 13207.118 14619.66 6170.095 12552.833 13155.76
                            132976 2016     2909 7 . . . . .  3400.737 . . 6170.095 8037.394 26062.97 15333.85 4075.6096 13207.118 14619.66 6170.095 12552.833 13155.76
                            135179 2016        . 7 . . . . .  3501.048 . . 6170.095 8037.394 26062.97 15333.85 4075.6096 13207.118 14619.66 6170.095 12552.833 13155.76
                            135276 2016        . 7 . . . . . 3080.8875 . . 6170.095 8037.394 26062.97 15333.85 4075.6096 13207.118 14619.66 6170.095 12552.833 13155.76
                            135522 2016     3251 7 . . . . . 3325.9624 . . 6170.095 8037.394 26062.97 15333.85 4075.6096 13207.118 14619.66 6170.095 12552.833 13155.76
                            136765 2016     3918 7 . . . . . 3325.9624 . . 6170.095 8037.394 26062.97 15333.85 4075.6096 13207.118 14619.66 6170.095 12552.833 13155.76
                            137023 2016        . 7 . . . . .  2820.107 . . 6170.095 8037.394 26062.97 15333.85 4075.6096 13207.118 14619.66 6170.095 12552.833 13155.76
                            137120 2016        . 7 . . . . . 3080.8875 . . 6170.095 8037.394 26062.97 15333.85 4075.6096 13207.118 14619.66 6170.095 12552.833 13155.76
                            137856 2016     1838 7 . . . . .  3427.967 . . 6170.095 8037.394 26062.97 15333.85 4075.6096 13207.118 14619.66 6170.095 12552.833 13155.76
                            138488 2016        . 7 . . . . . 3080.8875 . . 6170.095 8037.394 26062.97 15333.85 4075.6096 13207.118 14619.66 6170.095 12552.833 13155.76
                            155423 2016     6192 7 . . . . .         . . . 6170.095 8037.394 26062.97 15333.85 4075.6096 13207.118 14619.66 6170.095 12552.833 13155.76
                            165608 2016        . 7 . . . . .         . . . 6170.095 8037.394 26062.97 15333.85 4075.6096 13207.118 14619.66 6170.095 12552.833 13155.76
                            167871 2016        . 7 . . . . .         . . . 6170.095 8037.394 26062.97 15333.85 4075.6096 13207.118 14619.66 6170.095 12552.833 13155.76
                            172422 2016     6816 7 . . . . .  2980.539 . . 6170.095 8037.394 26062.97 15333.85 4075.6096 13207.118 14619.66 6170.095 12552.833 13155.76
                            176983 2016     5015 7 . . . . .         . . . 6170.095 8037.394 26062.97 15333.85 4075.6096 13207.118 14619.66 6170.095 12552.833 13155.76
                            177056 2016        . 7 . . . . .         . . . 6170.095 8037.394 26062.97 15333.85 4075.6096 13207.118 14619.66 6170.095 12552.833 13155.76
                            177436 2016    15441 7 . . . . .         . . . 6170.095 8037.394 26062.97 15333.85 4075.6096 13207.118 14619.66 6170.095 12552.833 13155.76
                            177870 2016     4500 7 . . . . .         . . . 6170.095 8037.394 26062.97 15333.85 4075.6096 13207.118 14619.66 6170.095 12552.833 13155.76
                            177931 2016        . 7 . . . . .  3381.933 . . 6170.095 8037.394 26062.97 15333.85 4075.6096 13207.118 14619.66 6170.095 12552.833 13155.76
                            178828 2016        . 7 . . . . .         . . . 6170.095 8037.394 26062.97 15333.85 4075.6096 13207.118 14619.66 6170.095 12552.833 13155.76
                            179238 2016        . 7 . . . . .         . . . 6170.095 8037.394 26062.97 15333.85 4075.6096 13207.118 14619.66 6170.095 12552.833 13155.76
                            183983 2016        . 7 . . . . .         . . . 6170.095 8037.394 26062.97 15333.85 4075.6096 13207.118 14619.66 6170.095 12552.833 13155.76
                            193122 2016        . 7 . . . . .         . . . 6170.095 8037.394 26062.97 15333.85 4075.6096 13207.118 14619.66 6170.095 12552.833 13155.76
                            194259 2016        . 7 . . . . .         . . . 6170.095 8037.394 26062.97 15333.85 4075.6096 13207.118 14619.66 6170.095 12552.833 13155.76
                            200828 2016        . 7 . . . . .         . . . 6170.095 8037.394 26062.97 15333.85 4075.6096 13207.118 14619.66 6170.095 12552.833 13155.76
                            201034 2016        . 7 . . . . .         . . . 6170.095 8037.394 26062.97 15333.85 4075.6096 13207.118 14619.66 6170.095 12552.833 13155.76
                            201098 2016        . 7 . . . . .         . . . 6170.095 8037.394 26062.97 15333.85 4075.6096 13207.118 14619.66 6170.095 12552.833 13155.76
                            201131 2016        . 7 . . . . .         . . . 6170.095 8037.394 26062.97 15333.85 4075.6096 13207.118 14619.66 6170.095 12552.833 13155.76
                            201159 2016        . 7 . . . . .         . . . 6170.095 8037.394 26062.97 15333.85 4075.6096 13207.118 14619.66 6170.095 12552.833 13155.76
                            201478 2016        . 7 . . . . .         . . . 6170.095 8037.394 26062.97 15333.85 4075.6096 13207.118 14619.66 6170.095 12552.833 13155.76
                            201496 2016        . 7 . . . . .         . . . 6170.095 8037.394 26062.97 15333.85 4075.6096 13207.118 14619.66 6170.095 12552.833 13155.76
                            201539 2016        . 7 . . . . .         . . . 6170.095 8037.394 26062.97 15333.85 4075.6096 13207.118 14619.66 6170.095 12552.833 13155.76
                            201803 2016     8600 7 . . . . .         . . . 6170.095 8037.394 26062.97 15333.85 4075.6096 13207.118 14619.66 6170.095 12552.833 13155.76
                            202152 2016 5711.875 7 . . . . .  2820.107 . . 6170.095 8037.394 26062.97 15333.85 4075.6096 13207.118 14619.66 6170.095 12552.833 13155.76
                            202949 2016        . 7 . . . . . 3325.9624 . . 6170.095 8037.394 26062.97 15333.85 4075.6096 13207.118 14619.66 6170.095 12552.833 13155.76
                            202985 2016        . 7 . . . . .         . . . 6170.095 8037.394 26062.97 15333.85 4075.6096 13207.118 14619.66 6170.095 12552.833 13155.76
                            203030 2016        . 7 . . . . .         . . . 6170.095 8037.394 26062.97 15333.85 4075.6096 13207.118 14619.66 6170.095 12552.833 13155.76
                            203942 2016        . 7 . . . . .         . . . 6170.095 8037.394 26062.97 15333.85 4075.6096 13207.118 14619.66 6170.095 12552.833 13155.76
                            204158 2016        . 7 . . . . .         . . . 6170.095 8037.394 26062.97 15333.85 4075.6096 13207.118 14619.66 6170.095 12552.833 13155.76
                            204981 2016        . 7 . . . . .         . . . 6170.095 8037.394 26062.97 15333.85 4075.6096 13207.118 14619.66 6170.095 12552.833 13155.76
                            206181 2016        . 7 . . . . .         . . . 6170.095 8037.394 26062.97 15333.85 4075.6096 13207.118 14619.66 6170.095 12552.833 13155.76
                            206321 2016        . 7 . . . . .         . . . 6170.095 8037.394 26062.97 15333.85 4075.6096 13207.118 14619.66 6170.095 12552.833 13155.76
                            206905 2016        . 7 . . . . .         . . . 6170.095 8037.394 26062.97 15333.85 4075.6096 13207.118 14619.66 6170.095 12552.833 13155.76
                            207607 2016        . 7 . . . . .  3381.933 . . 6170.095 8037.394 26062.97 15333.85 4075.6096 13207.118 14619.66 6170.095 12552.833 13155.76
                            208053 2016        . 7 . . . . .  2820.107 . . 6170.095 8037.394 26062.97 15333.85 4075.6096 13207.118 14619.66 6170.095 12552.833 13155.76
                            215886 2016        . 7 . . . . .         . . . 6170.095 8037.394 26062.97 15333.85 4075.6096 13207.118 14619.66 6170.095 12552.833 13155.76
                            219596 2016        . 7 . . . . .  3400.737 . . 6170.095 8037.394 26062.97 15333.85 4075.6096 13207.118 14619.66 6170.095 12552.833 13155.76
                            230490 2016        . 7 . . . . .  3400.737 . . 6170.095 8037.394 26062.97 15333.85 4075.6096 13207.118 14619.66 6170.095 12552.833 13155.76
                            230676 2016        . 7 . . . . . 3080.8875 . . 6170.095 8037.394 26062.97 15333.85 4075.6096 13207.118 14619.66 6170.095 12552.833 13155.76
                            231688 2016        . 7 . . . . .         . . . 6170.095 8037.394 26062.97 15333.85 4075.6096 13207.118 14619.66 6170.095 12552.833 13155.76
                            234225 2016        . 7 . . . . .         . . . 6170.095 8037.394 26062.97 15333.85 4075.6096 13207.118 14619.66 6170.095 12552.833 13155.76
                            234359 2016        . 7 . . . . .         . . . 6170.095 8037.394 26062.97 15333.85 4075.6096 13207.118 14619.66 6170.095 12552.833 13155.76
                            237172 2016     4191 7 . . . . . 3080.8875 . . 6170.095 8037.394 26062.97 15333.85 4075.6096 13207.118 14619.66 6170.095 12552.833 13155.76
                            237242 2016     3500 7 . . . . .   2956.39 . . 6170.095 8037.394 26062.97 15333.85 4075.6096 13207.118 14619.66 6170.095 12552.833 13155.76
                            237473 2016        . 7 . . . . .         . . . 6170.095 8037.394 26062.97 15333.85 4075.6096 13207.118 14619.66 6170.095 12552.833 13155.76
                            237491 2016        . 7 . . . . .         . . . 6170.095 8037.394 26062.97 15333.85 4075.6096 13207.118 14619.66 6170.095 12552.833 13155.76
                            237561 2016     2480 7 . . . . .         . . . 6170.095 8037.394 26062.97 15333.85 4075.6096 13207.118 14619.66 6170.095 12552.833 13155.76
                            237729 2016        . 7 . . . . .         . . . 6170.095 8037.394 26062.97 15333.85 4075.6096 13207.118 14619.66 6170.095 12552.833 13155.76
                            238096 2016        . 7 . . . . .         . . . 6170.095 8037.394 26062.97 15333.85 4075.6096 13207.118 14619.66 6170.095 12552.833 13155.76
                            243799 2016        . 7 . . . . .         . . . 6170.095 8037.394 26062.97 15333.85 4075.6096 13207.118 14619.66 6170.095 12552.833 13155.76
                            245999 2016        . 7 . . . . . 3080.8875 . . 6170.095 8037.394 26062.97 15333.85 4075.6096 13207.118 14619.66 6170.095 12552.833 13155.76
                            246017 2016        . 7 . . . . .         . . . 6170.095 8037.394 26062.97 15333.85 4075.6096 13207.118 14619.66 6170.095 12552.833 13155.76
                            246071 2016     9525 7 . . . . .         . . . 6170.095 8037.394 26062.97 15333.85 4075.6096 13207.118 14619.66 6170.095 12552.833 13155.76
                            246895 2016        . 7 . . . . .         . . . 6170.095 8037.394 26062.97 15333.85 4075.6096 13207.118 14619.66 6170.095 12552.833 13155.76
                            248624 2016        . 7 . . . . .         . . . 6170.095 8037.394 26062.97 15333.85 4075.6096 13207.118 14619.66 6170.095 12552.833 13155.76
                            248633 2016        . 7 . . . . .         . . . 6170.095 8037.394 26062.97 15333.85 4075.6096 13207.118 14619.66 6170.095 12552.833 13155.76
                            250993 2016        . 7 . . . . .         . . . 6170.095 8037.394 26062.97 15333.85 4075.6096 13207.118 14619.66 6170.095 12552.833 13155.76
                            260336 2016     4900 7 . . . . .         . . . 6170.095 8037.394 26062.97 15333.85 4075.6096 13207.118 14619.66 6170.095 12552.833 13155.76
                            260363 2016        . 7 . . . . .         . . . 6170.095 8037.394 26062.97 15333.85 4075.6096 13207.118 14619.66 6170.095 12552.833 13155.76
                            261393 2016        . 7 . . . . . 3080.8875 . . 6170.095 8037.394 26062.97 15333.85 4075.6096 13207.118 14619.66 6170.095 12552.833 13155.76
                            261773 2016        . 7 . . . . .         . . . 6170.095 8037.394 26062.97 15333.85 4075.6096 13207.118 14619.66 6170.095 12552.833 13155.76
                            364575 2016        . 7 . . . . .         . . . 6170.095 8037.394 26062.97 15333.85 4075.6096 13207.118 14619.66 6170.095 12552.833 13155.76
                            364627 2016        . 7 . . . . .         . . . 6170.095 8037.394 26062.97 15333.85 4075.6096 13207.118 14619.66 6170.095 12552.833 13155.76
                            364636 2016        . 7 . . . . .         . . . 6170.095 8037.394 26062.97 15333.85 4075.6096 13207.118 14619.66 6170.095 12552.833 13155.76
                            364946 2016        . 7 . . . . . 3325.9624 . . 6170.095 8037.394 26062.97 15333.85 4075.6096 13207.118 14619.66 6170.095 12552.833 13155.76
                            364964 2016        . 7 . . . . .         . . . 6170.095 8037.394 26062.97 15333.85 4075.6096 13207.118 14619.66 6170.095 12552.833 13155.76
                            365198 2016        . 7 . . . . .         . . . 6170.095 8037.394 26062.97 15333.85 4075.6096 13207.118 14619.66 6170.095 12552.833 13155.76
                            365240 2016        . 7 . . . . .         . . . 6170.095 8037.394 26062.97 15333.85 4075.6096 13207.118 14619.66 6170.095 12552.833 13155.76
                            365374 2016        . 7 . . . . .         . . . 6170.095 8037.394 26062.97 15333.85 4075.6096 13207.118 14619.66 6170.095 12552.833 13155.76
                            365383 2016        . 7 . . . . .         . . . 6170.095 8037.394 26062.97 15333.85 4075.6096 13207.118 14619.66 6170.095 12552.833 13155.76
                            365505 2016        . 7 . . . . .         . . . 6170.095 8037.394 26062.97 15333.85 4075.6096 13207.118 14619.66 6170.095 12552.833 13155.76
                            365763 2016     7766 7 . . . . .         . . . 6170.095 8037.394 26062.97 15333.85 4075.6096 13207.118 14619.66 6170.095 12552.833 13155.76
                            366623 2016        . 7 . . . . .         . . . 6170.095 8037.394 26062.97 15333.85 4075.6096 13207.118 14619.66 6170.095 12552.833 13155.76
                            366632 2016        . 7 . . . . .         . . . 6170.095 8037.394 26062.97 15333.85 4075.6096 13207.118 14619.66 6170.095 12552.833 13155.76
                            367972 2016        . 7 . . . . .         . . . 6170.095 8037.394 26062.97 15333.85 4075.6096 13207.118 14619.66 6170.095 12552.833 13155.76
                            368407 2016        . 7 . . . . .         . . . 6170.095 8037.394 26062.97 15333.85 4075.6096 13207.118 14619.66 6170.095 12552.833 13155.76
                            369109 2016        . 7 . . . . .         . . . 6170.095 8037.394 26062.97 15333.85 4075.6096 13207.118 14619.66 6170.095 12552.833 13155.76
                            369668 2016        . 7 . . . . .         . . . 6170.095 8037.394 26062.97 15333.85 4075.6096 13207.118 14619.66 6170.095 12552.833 13155.76
                            372082 2016        . 7 . . . . .         . . . 6170.095 8037.394 26062.97 15333.85 4075.6096 13207.118 14619.66 6170.095 12552.833 13155.76
                            373711 2016     9035 7 . . . . .         . . . 6170.095 8037.394 26062.97 15333.85 4075.6096 13207.118 14619.66 6170.095 12552.833 13155.76
                            374592 2016        . 7 . . . . .         . . . 6170.095 8037.394 26062.97 15333.85 4075.6096 13207.118 14619.66 6170.095 12552.833 13155.76
                            375373 2016        . 7 . . . . . 3519.0115 . . 6170.095 8037.394 26062.97 15333.85 4075.6096 13207.118 14619.66 6170.095 12552.833 13155.76
                            375656 2016        . 7 . . . . .         . . . 6170.095 8037.394 26062.97 15333.85 4075.6096 13207.118 14619.66 6170.095 12552.833 13155.76
                            375692 2016        . 7 . . . . .  2820.107 . . 6170.095 8037.394 26062.97 15333.85 4075.6096 13207.118 14619.66 6170.095 12552.833 13155.76
                            375717 2016        . 7 . . . . .         . . . 6170.095 8037.394 26062.97 15333.85 4075.6096 13207.118 14619.66 6170.095 12552.833 13155.76
                            375726 2016        . 7 . . . . .  2980.539 . . 6170.095 8037.394 26062.97 15333.85 4075.6096 13207.118 14619.66 6170.095 12552.833 13155.76
                            end
                            label values unitid unitiddf
                            label values year yeardf
                            label values avg_tuition_fees_ft tuition_fees_ftdf
                            label values sector sectordf
                            label def sectordf 7 "Public, less-than two-year", modify

                            Comment


                            • #15
                              Here is the code without the years or sector limited:

                              Code:
                              * Example generated by -dataex-. To install: ssc install dataex
                              clear
                              input long unitid int year double avg_tuition_fees_ft float sector byte(sector_1 sector_2) float(sector_3 sector_4 sector_5 sector_6 sector_7 sector_8 sector_9 wanted_1 wanted_2 wanted_3 wanted_4 wanted_5 wanted_6 wanted_7 wanted_8 wanted_9)
                              100654 2008  4072 1 . . 5922.394         . .         . . . . 5922.394 19520.313 15352.144  2820.107  9714.963  12881.91 4985.959  8027.048 11084.425
                              100654 2009  4692 1 . . 6265.079         . .         . . . . 6265.079  20407.69 15560.724   2956.39   9989.72 14087.479 5059.533  8317.218 11177.128
                              100654 2010  5800 1 . . 6608.007         . .         . . . . 6608.007  21402.32 15243.452   3165.12 10624.734  13521.01 6309.087  8694.389  11817.59
                              100654 2011  6828 1 . . 7072.479         . .         . . . . 7072.479  22200.95 15185.118  3381.933 11853.928  13948.85 6474.875  9316.611 12500.013
                              100654 2012  7182 1 . . 7360.464         . .         . . . . 7360.464 23126.385 15275.388 3519.0115 12151.585 14208.567 6590.833  9371.277 12060.032
                              100654 2013  7182 1 . . 7573.859         . .         . . . . 7573.859  23792.57 15208.097   3661.56 12504.496 14351.418 6696.182  9814.048  12251.54
                              100654 2014  9096 1 . . 7750.858         . .         . . . . 7750.858 24454.877 15483.184  3777.615 12589.093   14354.9 6547.909 11431.875 12552.312
                              100654 2015  9366 1 . . 7991.114         . .         . . . . 7991.114  25185.45 15604.883  3924.161 12476.803 14654.785 6685.348  12063.77 12643.553
                              100654 2016  9366 1 . . 8037.394         . .         . . . . 8037.394  26062.97  15333.85 4075.6096 13207.118  14619.66 6170.095 12552.833  13155.76
                              100663 2008  4664 1 . . 5922.394         . .         . . . . 5922.394 19520.313 15352.144  2820.107  9714.963  12881.91 4985.959  8027.048 11084.425
                              100663 2009  5096 1 . . 6265.079         . .         . . . . 6265.079  20407.69 15560.724   2956.39   9989.72 14087.479 5059.533  8317.218 11177.128
                              100663 2010  5806 1 . . 6608.007         . .         . . . . 6608.007  21402.32 15243.452   3165.12 10624.734  13521.01 6309.087  8694.389  11817.59
                              100663 2011  6264 1 . . 7072.479         . .         . . . . 7072.479  22200.95 15185.118  3381.933 11853.928  13948.85 6474.875  9316.611 12500.013
                              100663 2012  6798 1 . . 7360.464         . .         . . . . 7360.464 23126.385 15275.388 3519.0115 12151.585 14208.567 6590.833  9371.277 12060.032
                              100663 2013  7206 1 . . 7573.859         . .         . . . . 7573.859  23792.57 15208.097   3661.56 12504.496 14351.418 6696.182  9814.048  12251.54
                              100663 2014  7510 1 . . 7750.858         . .         . . . . 7750.858 24454.877 15483.184  3777.615 12589.093   14354.9 6547.909 11431.875 12552.312
                              100663 2015  7766 1 . . 7991.114         . .         . . . . 7991.114  25185.45 15604.883  3924.161 12476.803 14654.785 6685.348  12063.77 12643.553
                              100663 2016  8040 1 . . 8037.394         . .         . . . . 8037.394  26062.97  15333.85 4075.6096 13207.118  14619.66 6170.095 12552.833  13155.76
                              100690 2008  6600 2 . .        . 19520.313 .         . . . . 5922.394 19520.313 15352.144  2820.107  9714.963  12881.91 4985.959  8027.048 11084.425
                              100690 2009  8000 2 . .        .  20407.69 .         . . . . 6265.079  20407.69 15560.724   2956.39   9989.72 14087.479 5059.533  8317.218 11177.128
                              100690 2010  8360 2 . .        .  21402.32 .         . . . . 6608.007  21402.32 15243.452   3165.12 10624.734  13521.01 6309.087  8694.389  11817.59
                              100690 2011  8720 2 . .        .  22200.95 .         . . . . 7072.479  22200.95 15185.118  3381.933 11853.928  13948.85 6474.875  9316.611 12500.013
                              100690 2012  8180 2 . .        . 23126.385 .         . . . . 7360.464 23126.385 15275.388 3519.0115 12151.585 14208.567 6590.833  9371.277 12060.032
                              100690 2013  7720 2 . .        .  23792.57 .         . . . . 7573.859  23792.57 15208.097   3661.56 12504.496 14351.418 6696.182  9814.048  12251.54
                              100690 2014  6900 2 . .        . 24454.877 .         . . . . 7750.858 24454.877 15483.184  3777.615 12589.093   14354.9 6547.909 11431.875 12552.312
                              100690 2015 10860 2 . .        .  25185.45 .         . . . . 7991.114  25185.45 15604.883  3924.161 12476.803 14654.785 6685.348  12063.77 12643.553
                              100690 2016 10180 2 . .        .  26062.97 .         . . . . 8037.394  26062.97  15333.85 4075.6096 13207.118  14619.66 6170.095 12552.833  13155.76
                              100706 2008  5952 1 . . 5922.394         . .         . . . . 5922.394 19520.313 15352.144  2820.107  9714.963  12881.91 4985.959  8027.048 11084.425
                              100706 2009  6510 1 . . 6265.079         . .         . . . . 6265.079  20407.69 15560.724   2956.39   9989.72 14087.479 5059.533  8317.218 11177.128
                              100706 2010  7492 1 . . 6608.007         . .         . . . . 6608.007  21402.32 15243.452   3165.12 10624.734  13521.01 6309.087  8694.389  11817.59
                              100706 2011  8094 1 . . 7072.479         . .         . . . . 7072.479  22200.95 15185.118  3381.933 11853.928  13948.85 6474.875  9316.611 12500.013
                              100706 2012  8794 1 . . 7360.464         . .         . . . . 7360.464 23126.385 15275.388 3519.0115 12151.585 14208.567 6590.833  9371.277 12060.032
                              100706 2013  9192 1 . . 7573.859         . .         . . . . 7573.859  23792.57 15208.097   3661.56 12504.496 14351.418 6696.182  9814.048  12251.54
                              100706 2014  9158 1 . . 7750.858         . .         . . . . 7750.858 24454.877 15483.184  3777.615 12589.093   14354.9 6547.909 11431.875 12552.312
                              100706 2015  9128 1 . . 7991.114         . .         . . . . 7991.114  25185.45 15604.883  3924.161 12476.803 14654.785 6685.348  12063.77 12643.553
                              100706 2016  9842 1 . . 8037.394         . .         . . . . 8037.394  26062.97  15333.85 4075.6096 13207.118  14619.66 6170.095 12552.833  13155.76
                              100724 2008  5460 1 . . 5922.394         . .         . . . . 5922.394 19520.313 15352.144  2820.107  9714.963  12881.91 4985.959  8027.048 11084.425
                              100724 2009  6468 1 . . 6265.079         . .         . . . . 6265.079  20407.69 15560.724   2956.39   9989.72 14087.479 5059.533  8317.218 11177.128
                              100724 2010  7164 1 . . 6608.007         . .         . . . . 6608.007  21402.32 15243.452   3165.12 10624.734  13521.01 6309.087  8694.389  11817.59
                              100724 2011  8082 1 . . 7072.479         . .         . . . . 7072.479  22200.95 15185.118  3381.933 11853.928  13948.85 6474.875  9316.611 12500.013
                              100724 2012  7932 1 . . 7360.464         . .         . . . . 7360.464 23126.385 15275.388 3519.0115 12151.585 14208.567 6590.833  9371.277 12060.032
                              100724 2013  8720 1 . . 7573.859         . .         . . . . 7573.859  23792.57 15208.097   3661.56 12504.496 14351.418 6696.182  9814.048  12251.54
                              100724 2014  8720 1 . . 7750.858         . .         . . . . 7750.858 24454.877 15483.184  3777.615 12589.093   14354.9 6547.909 11431.875 12552.312
                              100724 2015  8720 1 . . 7991.114         . .         . . . . 7991.114  25185.45 15604.883  3924.161 12476.803 14654.785 6685.348  12063.77 12643.553
                              100724 2016  9220 1 . . 8037.394         . .         . . . . 8037.394  26062.97  15333.85 4075.6096 13207.118  14619.66 6170.095 12552.833  13155.76
                              100751 2008  6400 1 . . 5922.394         . .         . . . . 5922.394 19520.313 15352.144  2820.107  9714.963  12881.91 4985.959  8027.048 11084.425
                              100751 2009  7000 1 . . 6265.079         . .         . . . . 6265.079  20407.69 15560.724   2956.39   9989.72 14087.479 5059.533  8317.218 11177.128
                              100751 2010  7900 1 . . 6608.007         . .         . . . . 6608.007  21402.32 15243.452   3165.12 10624.734  13521.01 6309.087  8694.389  11817.59
                              100751 2011  8600 1 . . 7072.479         . .         . . . . 7072.479  22200.95 15185.118  3381.933 11853.928  13948.85 6474.875  9316.611 12500.013
                              100751 2012  9200 1 . . 7360.464         . .         . . . . 7360.464 23126.385 15275.388 3519.0115 12151.585 14208.567 6590.833  9371.277 12060.032
                              100751 2013  9450 1 . . 7573.859         . .         . . . . 7573.859  23792.57 15208.097   3661.56 12504.496 14351.418 6696.182  9814.048  12251.54
                              100751 2014  9826 1 . . 7750.858         . .         . . . . 7750.858 24454.877 15483.184  3777.615 12589.093   14354.9 6547.909 11431.875 12552.312
                              100751 2015 10170 1 . . 7991.114         . .         . . . . 7991.114  25185.45 15604.883  3924.161 12476.803 14654.785 6685.348  12063.77 12643.553
                              100751 2016 10470 1 . . 8037.394         . .         . . . . 8037.394  26062.97  15333.85 4075.6096 13207.118  14619.66 6170.095 12552.833  13155.76
                              100760 2008  2700 4 . .        .         . .  2820.107 . . . 5922.394 19520.313 15352.144  2820.107  9714.963  12881.91 4985.959  8027.048 11084.425
                              100760 2009  2700 4 . .        .         . .   2956.39 . . . 6265.079  20407.69 15560.724   2956.39   9989.72 14087.479 5059.533  8317.218 11177.128
                              100760 2010  3270 4 . .        .         . .   3165.12 . . . 6608.007  21402.32 15243.452   3165.12 10624.734  13521.01 6309.087  8694.389  11817.59
                              100760 2011  2700 4 . .        .         . .  3381.933 . . . 7072.479  22200.95 15185.118  3381.933 11853.928  13948.85 6474.875  9316.611 12500.013
                              100760 2012  4140 4 . .        .         . . 3519.0115 . . . 7360.464 23126.385 15275.388 3519.0115 12151.585 14208.567 6590.833  9371.277 12060.032
                              100760 2013  4200 4 . .        .         . .   3661.56 . . . 7573.859  23792.57 15208.097   3661.56 12504.496 14351.418 6696.182  9814.048  12251.54
                              100760 2014  3491 4 . .        .         . .  3777.615 . . . 7750.858 24454.877 15483.184  3777.615 12589.093   14354.9 6547.909 11431.875 12552.312
                              100760 2015  4320 4 . .        .         . .  3924.161 . . . 7991.114  25185.45 15604.883  3924.161 12476.803 14654.785 6685.348  12063.77 12643.553
                              100760 2016  4380 4 . .        .         . . 4075.6096 . . . 8037.394  26062.97  15333.85 4075.6096 13207.118  14619.66 6170.095 12552.833  13155.76
                              100830 2008  5580 1 . . 5922.394         . .         . . . . 5922.394 19520.313 15352.144  2820.107  9714.963  12881.91 4985.959  8027.048 11084.425
                              100830 2009  5970 1 . . 6265.079         . .         . . . . 6265.079  20407.69 15560.724   2956.39   9989.72 14087.479 5059.533  8317.218 11177.128
                              100830 2010  6620 1 . . 6608.007         . .         . . . . 6608.007  21402.32 15243.452   3165.12 10624.734  13521.01 6309.087  8694.389  11817.59
                              100830 2011  7580 1 . . 7072.479         . .         . . . . 7072.479  22200.95 15185.118  3381.933 11853.928  13948.85 6474.875  9316.611 12500.013
                              100830 2012  8150 1 . . 7360.464         . .         . . . . 7360.464 23126.385 15275.388 3519.0115 12151.585 14208.567 6590.833  9371.277 12060.032
                              100830 2013  8750 1 . . 7573.859         . .         . . . . 7573.859  23792.57 15208.097   3661.56 12504.496 14351.418 6696.182  9814.048  12251.54
                              100830 2014  9080 1 . . 7750.858         . .         . . . . 7750.858 24454.877 15483.184  3777.615 12589.093   14354.9 6547.909 11431.875 12552.312
                              100830 2015  9350 1 . . 7991.114         . .         . . . . 7991.114  25185.45 15604.883  3924.161 12476.803 14654.785 6685.348  12063.77 12643.553
                              100830 2016  9640 1 . . 8037.394         . .         . . . . 8037.394  26062.97  15333.85 4075.6096 13207.118  14619.66 6170.095 12552.833  13155.76
                              100858 2008  6500 1 . . 5922.394         . .         . . . . 5922.394 19520.313 15352.144  2820.107  9714.963  12881.91 4985.959  8027.048 11084.425
                              100858 2009  6972 1 . . 6265.079         . .         . . . . 6265.079  20407.69 15560.724   2956.39   9989.72 14087.479 5059.533  8317.218 11177.128
                              100858 2010  7900 1 . . 6608.007         . .         . . . . 6608.007  21402.32 15243.452   3165.12 10624.734  13521.01 6309.087  8694.389  11817.59
                              100858 2011  8698 1 . . 7072.479         . .         . . . . 7072.479  22200.95 15185.118  3381.933 11853.928  13948.85 6474.875  9316.611 12500.013
                              100858 2012  9446 1 . . 7360.464         . .         . . . . 7360.464 23126.385 15275.388 3519.0115 12151.585 14208.567 6590.833  9371.277 12060.032
                              100858 2013  9852 1 . . 7573.859         . .         . . . . 7573.859  23792.57 15208.097   3661.56 12504.496 14351.418 6696.182  9814.048  12251.54
                              100858 2014 10200 1 . . 7750.858         . .         . . . . 7750.858 24454.877 15483.184  3777.615 12589.093   14354.9 6547.909 11431.875 12552.312
                              100858 2015 10424 1 . . 7991.114         . .         . . . . 7991.114  25185.45 15604.883  3924.161 12476.803 14654.785 6685.348  12063.77 12643.553
                              100858 2016 10696 1 . . 8037.394         . .         . . . . 8037.394  26062.97  15333.85 4075.6096 13207.118  14619.66 6170.095 12552.833  13155.76
                              100937 2008 25586 2 . .        . 19520.313 .         . . . . 5922.394 19520.313 15352.144  2820.107  9714.963  12881.91 4985.959  8027.048 11084.425
                              100937 2009 26746 2 . .        .  20407.69 .         . . . . 6265.079  20407.69 15560.724   2956.39   9989.72 14087.479 5059.533  8317.218 11177.128
                              100937 2010 27890 2 . .        .  21402.32 .         . . . . 6608.007  21402.32 15243.452   3165.12 10624.734  13521.01 6309.087  8694.389  11817.59
                              100937 2011 29290 2 . .        .  22200.95 .         . . . . 7072.479  22200.95 15185.118  3381.933 11853.928  13948.85 6474.875  9316.611 12500.013
                              100937 2012 30690 2 . .        . 23126.385 .         . . . . 7360.464 23126.385 15275.388 3519.0115 12151.585 14208.567 6590.833  9371.277 12060.032
                              100937 2013 30690 2 . .        .  23792.57 .         . . . . 7573.859  23792.57 15208.097   3661.56 12504.496 14351.418 6696.182  9814.048  12251.54
                              100937 2014 31888 2 . .        . 24454.877 .         . . . . 7750.858 24454.877 15483.184  3777.615 12589.093   14354.9 6547.909 11431.875 12552.312
                              100937 2015 33128 2 . .        .  25185.45 .         . . . . 7991.114  25185.45 15604.883  3924.161 12476.803 14654.785 6685.348  12063.77 12643.553
                              100937 2016 34448 2 . .        .  26062.97 .         . . . . 8037.394  26062.97  15333.85 4075.6096 13207.118  14619.66 6170.095 12552.833  13155.76
                              101028 2008  2700 4 . .        .         . .  2820.107 . . . 5922.394 19520.313 15352.144  2820.107  9714.963  12881.91 4985.959  8027.048 11084.425
                              101028 2009  2940 4 . .        .         . .   2956.39 . . . 6265.079  20407.69 15560.724   2956.39   9989.72 14087.479 5059.533  8317.218 11177.128
                              101028 2010  3510 4 . .        .         . .   3165.12 . . . 6608.007  21402.32 15243.452   3165.12 10624.734  13521.01 6309.087  8694.389  11817.59
                              101028 2011  4140 4 . .        .         . .  3381.933 . . . 7072.479  22200.95 15185.118  3381.933 11853.928  13948.85 6474.875  9316.611 12500.013
                              101028 2012  4200 4 . .        .         . . 3519.0115 . . . 7360.464 23126.385 15275.388 3519.0115 12151.585 14208.567 6590.833  9371.277 12060.032
                              101028 2013  4260 4 . .        .         . .   3661.56 . . . 7573.859  23792.57 15208.097   3661.56 12504.496 14351.418 6696.182  9814.048  12251.54
                              101028 2014  4320 4 . .        .         . .  3777.615 . . . 7750.858 24454.877 15483.184  3777.615 12589.093   14354.9 6547.909 11431.875 12552.312
                              101028 2015  4380 4 . .        .         . .  3924.161 . . . 7991.114  25185.45 15604.883  3924.161 12476.803 14654.785 6685.348  12063.77 12643.553
                              101028 2016  4254 4 . .        .         . . 4075.6096 . . . 8037.394  26062.97  15333.85 4075.6096 13207.118  14619.66 6170.095 12552.833  13155.76
                              101073 2008  6264 2 . .        . 19520.313 .         . . . . 5922.394 19520.313 15352.144  2820.107  9714.963  12881.91 4985.959  8027.048 11084.425
                              end
                              label values unitid unitiddf
                              label values year yeardf
                              label values avg_tuition_fees_ft tuition_fees_ftdf
                              label values sector sectordf
                              label def sectordf 1 "Public, four-year or above", modify
                              label def sectordf 2 "Private not-for-profit, four-year or above", modify
                              label def sectordf 4 "Public, two-year", modify
                              Thank you for looking at this as I work through just a few more small issues with the code.

                              Here is the information I am showing that gives me a different average. I really appreciate an assessment of this since this will certainly have an impact on my model. Thank you!!

                              Full data after trimming with this code:

                              drop if year != 2016

                              drop if sector != 7
                              year avg_tuition_fees_ft sector
                              2016 Public, less-than two-year
                              2016 1350 Public, less-than two-year
                              2016 2195 Public, less-than two-year
                              2016 Public, less-than two-year
                              2016 5520 Public, less-than two-year
                              2016 2909 Public, less-than two-year
                              2016 Public, less-than two-year
                              2016 Public, less-than two-year
                              2016 3251 Public, less-than two-year
                              2016 3918 Public, less-than two-year
                              2016 Public, less-than two-year
                              2016 Public, less-than two-year
                              2016 1838 Public, less-than two-year
                              2016 Public, less-than two-year
                              2016 6192 Public, less-than two-year
                              2016 Public, less-than two-year
                              2016 Public, less-than two-year
                              2016 6816 Public, less-than two-year
                              2016 5015 Public, less-than two-year
                              2016 Public, less-than two-year
                              2016 15441 Public, less-than two-year
                              2016 4500 Public, less-than two-year
                              2016 Public, less-than two-year
                              2016 Public, less-than two-year
                              2016 Public, less-than two-year
                              2016 Public, less-than two-year
                              2016 Public, less-than two-year
                              2016 Public, less-than two-year
                              2016 Public, less-than two-year
                              2016 Public, less-than two-year
                              2016 Public, less-than two-year
                              2016 Public, less-than two-year
                              2016 Public, less-than two-year
                              2016 Public, less-than two-year
                              2016 Public, less-than two-year
                              2016 Public, less-than two-year
                              2016 8600 Public, less-than two-year
                              2016 5711.875 Public, less-than two-year
                              2016 Public, less-than two-year
                              2016 Public, less-than two-year
                              2016 Public, less-than two-year
                              2016 Public, less-than two-year
                              2016 Public, less-than two-year
                              2016 Public, less-than two-year
                              2016 Public, less-than two-year
                              2016 Public, less-than two-year
                              2016 Public, less-than two-year
                              2016 Public, less-than two-year
                              2016 Public, less-than two-year
                              2016 Public, less-than two-year
                              2016 Public, less-than two-year
                              2016 Public, less-than two-year
                              2016 Public, less-than two-year
                              2016 Public, less-than two-year
                              2016 Public, less-than two-year
                              2016 Public, less-than two-year
                              2016 4191 Public, less-than two-year
                              2016 3500 Public, less-than two-year
                              2016 Public, less-than two-year
                              2016 Public, less-than two-year
                              2016 2480 Public, less-than two-year
                              2016 Public, less-than two-year
                              2016 Public, less-than two-year
                              2016 Public, less-than two-year
                              2016 Public, less-than two-year
                              2016 Public, less-than two-year
                              2016 9525 Public, less-than two-year
                              2016 Public, less-than two-year
                              2016 Public, less-than two-year
                              2016 Public, less-than two-year
                              2016 Public, less-than two-year
                              2016 4900 Public, less-than two-year
                              2016 Public, less-than two-year
                              2016 Public, less-than two-year
                              2016 Public, less-than two-year
                              2016 Public, less-than two-year
                              2016 Public, less-than two-year
                              2016 Public, less-than two-year
                              2016 Public, less-than two-year
                              2016 Public, less-than two-year
                              2016 Public, less-than two-year
                              2016 Public, less-than two-year
                              2016 Public, less-than two-year
                              2016 Public, less-than two-year
                              2016 Public, less-than two-year
                              2016 7766 Public, less-than two-year
                              2016 Public, less-than two-year
                              2016 Public, less-than two-year
                              2016 Public, less-than two-year
                              2016 Public, less-than two-year
                              2016 Public, less-than two-year
                              2016 Public, less-than two-year
                              2016 Public, less-than two-year
                              2016 9035 Public, less-than two-year
                              2016 Public, less-than two-year
                              2016 Public, less-than two-year
                              2016 Public, less-than two-year
                              2016 Public, less-than two-year
                              2016 Public, less-than two-year
                              2016 Public, less-than two-year
                              2016 Public, less-than two-year
                              2016 Public, less-than two-year
                              2016 Public, less-than two-year
                              2016 Public, less-than two-year
                              2016 Public, less-than two-year
                              2016 Public, less-than two-year
                              2016 Public, less-than two-year
                              2016 4150 Public, less-than two-year
                              2016 Public, less-than two-year
                              2016 Public, less-than two-year
                              2016 Public, less-than two-year
                              2016 Public, less-than two-year
                              2016 Public, less-than two-year
                              2016 Public, less-than two-year
                              2016 Public, less-than two-year
                              2016 4795 Public, less-than two-year
                              2016 Public, less-than two-year
                              2016 Public, less-than two-year
                              2016 Public, less-than two-year
                              2016 Public, less-than two-year
                              2016 Public, less-than two-year
                              2016 Public, less-than two-year
                              2016 Public, less-than two-year
                              2016 6065.5 Public, less-than two-year
                              2016 Public, less-than two-year
                              2016 Public, less-than two-year
                              2016 Public, less-than two-year
                              2016 Public, less-than two-year
                              2016 Public, less-than two-year
                              2016 Public, less-than two-year
                              2016 Public, less-than two-year
                              2016 2790 Public, less-than two-year
                              2016 Public, less-than two-year
                              2016 Public, less-than two-year
                              2016 Public, less-than two-year
                              2016 Public, less-than two-year
                              2016 3760 Public, less-than two-year
                              2016 Public, less-than two-year
                              2016 Public, less-than two-year
                              2016 Public, less-than two-year
                              2016 Public, less-than two-year
                              2016 Public, less-than two-year
                              2016 Public, less-than two-year
                              2016 Public, less-than two-year
                              2016 Public, less-than two-year
                              2016 Public, less-than two-year
                              2016 9918 Public, less-than two-year
                              2016 14810 Public, less-than two-year
                              2016 Public, less-than two-year
                              2016 Public, less-than two-year
                              2016 Public, less-than two-year
                              2016 Public, less-than two-year
                              2016 Public, less-than two-year
                              2016 Public, less-than two-year
                              2016 Public, less-than two-year
                              2016 Public, less-than two-year
                              2016 Public, less-than two-year
                              2016 Public, less-than two-year
                              2016 12120 Public, less-than two-year
                              2016 Public, less-than two-year
                              2016 Public, less-than two-year
                              2016 Public, less-than two-year
                              2016 Public, less-than two-year
                              2016 Public, less-than two-year
                              2016 Public, less-than two-year
                              2016 11705.6 Public, less-than two-year
                              2016 Public, less-than two-year
                              2016 12086.67 Public, less-than two-year
                              2016 12489.5 Public, less-than two-year
                              2016 Public, less-than two-year
                              2016 Public, less-than two-year
                              2016 5700 Public, less-than two-year
                              2016 Public, less-than two-year
                              2016 11195.5 Public, less-than two-year
                              2016 Public, less-than two-year
                              2016 Public, less-than two-year
                              2016 3500 Public, less-than two-year
                              2016 3005 Public, less-than two-year
                              2016 10000 Public, less-than two-year
                              2016 Public, less-than two-year
                              2016 Public, less-than two-year
                              2016 Public, less-than two-year
                              2016 Public, less-than two-year
                              2016 Public, less-than two-year
                              2016 9975 Public, less-than two-year
                              2016 Public, less-than two-year
                              2016 Public, less-than two-year
                              2016 Public, less-than two-year
                              2016 Public, less-than two-year
                              2016 Public, less-than two-year
                              2016 Public, less-than two-year
                              2016 1430 Public, less-than two-year
                              2016 Public, less-than two-year
                              2016 Public, less-than two-year
                              2016 Public, less-than two-year
                              2016 Public, less-than two-year
                              2016 Public, less-than two-year
                              2016 Public, less-than two-year
                              2016 Public, less-than two-year
                              2016 Public, less-than two-year
                              2016 Public, less-than two-year
                              2016 Public, less-than two-year
                              2016 Public, less-than two-year
                              2016 Public, less-than two-year
                              2016 Public, less-than two-year
                              2016 Public, less-than two-year
                              2016 Public, less-than two-year
                              2016 Public, less-than two-year
                              2016 Public, less-than two-year
                              2016 Public, less-than two-year
                              2016 Public, less-than two-year
                              2016 Public, less-than two-year
                              2016 7046 Public, less-than two-year
                              2016 Public, less-than two-year
                              2016 Public, less-than two-year
                              2016 Public, less-than two-year
                              2016 Public, less-than two-year
                              2016 Public, less-than two-year

                              Comment

                              Working...
                              X