Question: How do I obtain four and six-year graduation rates, by "start year" (basically the year the students first entered university)
Background: I have a discrete dataset, with time period variables (t=1, t=2, t=3), with a variable EventGrad (1=Graduated, 0 otherwise). What I'd to do is create a bar graph (by year of first registration). To get an idea of whether I was on the right track, I first performed the following two commands, using the year 2007 as an example
tab EventGrad if _period==3 & Year==2007
tab EventGrad if _period==4 & Year==2007
I then tried the following graph:
graph bar EventGrad if _period==3|_period==4, over(Year) asyvars blabel(bar, format(%9.2f)) percent
However, that didn't seem to work. Basically, I want to add up the "1s" in period 3 and 4, and express that as a percentage of the total number of students who started in 2007.
Background: I have a discrete dataset, with time period variables (t=1, t=2, t=3), with a variable EventGrad (1=Graduated, 0 otherwise). What I'd to do is create a bar graph (by year of first registration). To get an idea of whether I was on the right track, I first performed the following two commands, using the year 2007 as an example
tab EventGrad if _period==3 & Year==2007
tab EventGrad if _period==4 & Year==2007
I then tried the following graph:
graph bar EventGrad if _period==3|_period==4, over(Year) asyvars blabel(bar, format(%9.2f)) percent
However, that didn't seem to work. Basically, I want to add up the "1s" in period 3 and 4, and express that as a percentage of the total number of students who started in 2007.
Comment