{"issue":{"pull_request":{"diff_url":null,"html_url":null,"patch_url":null},"state":"closed","user":{"avatar_url":"https://secure.gravatar.com/avatar/3b3177221d25427497b6fb35ccbbdfe0?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"3b3177221d25427497b6fb35ccbbdfe0","url":"https://api.github.com/users/Michael833","login":"Michael833","id":759901},"milestone":null,"assignee":{"avatar_url":"https://secure.gravatar.com/avatar/1a278b9eaf17c483d8e31b7047b5e7b2?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"1a278b9eaf17c483d8e31b7047b5e7b2","url":"https://api.github.com/users/Alexandersax","login":"Alexandersax","id":1057032},"updated_at":"2011-11-11T22:26:18Z","labels":[{"name":"-Mod-","color":"d7e102","url":"https://api.github.com/repos/Michael833/EGRA---Intern-work/labels/-Mod-"},{"name":"General Work","color":"444444","url":"https://api.github.com/repos/Michael833/EGRA---Intern-work/labels/General+Work"}],"comments":3,"closed_at":"2011-11-11T22:26:18Z","url":"https://api.github.com/repos/Michael833/EGRA---Intern-work/issues/28","body":"I'm happy to do this one, but I'll need some help with understanding how you input the information into the matrix in lines 88-120 in the outtable.ado file.\r\n\r\nuse \"E:\\Task 3 EGRA\\Final Databases\\Malawi\\4. National Baseline EGMA Malawi 2010 Weighted Standardized Teachers.dta\", clear\r\ndrop if grade !=2\r\nsvy: mean num_id_score_pcnt, over(female)\r\nlincom [num_id_score_pcnt]Male - [num_id_score_pcnt]Female\r\ngen t=abs(r(estimate)/r(se))\r\ngen pvalue=2*ttail(r(df),t) if grade==2\r\ntab pvalue\r\nsvy: reg num_id_score_pcnt female\r\nsvy: mean num_id_score_pcnt, over(female)\r\n\r\nAs you can see here, there are a couple of different ways to create t-statistics and p-values for the difference between to subgroups.  In this example, we are checking the difference between boys' and girls' reading scores in second graders.  -lincom- uses the info from the last -regress- or -svy:regress- function to calculate and show those values.  Basically, I'm looking for a table like:\r\nZ:\\Task 3 EGRA\\Final Databases\\Malawi\\5. Emily SE Data Summary.xlsx\r\nNot the first sheet, but the second, third, where there are subpopulations.\r\n","html_url":"https://github.com/Michael833/EGRA---Intern-work/issues/28","title":"outtable: Create t and p-values between -by- subgroups","number":28,"id":2044999,"created_at":"2011-10-25T13:39:14Z"},"action":"created","comment":{"user":{"avatar_url":"https://secure.gravatar.com/avatar/3b3177221d25427497b6fb35ccbbdfe0?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"3b3177221d25427497b6fb35ccbbdfe0","url":"https://api.github.com/users/Michael833","login":"Michael833","id":759901},"updated_at":"2011-11-11T22:26:18Z","url":"https://api.github.com/repos/Michael833/EGRA---Intern-work/issues/comments/2714034","body":"The SE's were supposed to be SD's.  I fixed that, and a few other things.  I also created a huge file with a bunch of test runs in it, and I'm having Chris independently verify the data.  Closing for now.  Hopefully it won't come back.","id":2714034,"created_at":"2011-11-11T22:26:18Z"}}