[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

From |
Steven Samuels <sjhsamuels@earthlink.net> |

To |
statalist@hsphsun2.harvard.edu |

Subject |
Re: st: Question about svyset command |

Date |
Thu, 19 Feb 2009 14:55:41 -0500 |

--

-Steve On Feb 19, 2009, at 1:24 PM, Stas Kolenikov wrote:

Adding to the previous comments: In all likelihood, your results are only generalizable to those most populous counties, as they are probably large metropolitan areas. You would need to think very carefully about what the population is to which the results are generalizable. Your superpopulation, if you can think of one, would be all potential trials in these and similar large counties. I would imagine that in a 3000 people county in Idaho, people won't be suing each other as furiously as somewhere in New Jersey or California, as there is plenty of land to live on... but that's something for you to clarify. Hence, just like Michael, I would disagree with Steven about ignoring fpc so happily. They would affect your standard errors, correctly showing that you got more than half of your total finie population. If you had all of your population, you would have a census logistic regression, which would be just some sort of the line saying where your 0s and 1s are. Now, if you had a census regression, what would standard errors stand for? On one hand, you've got all possible observations, so there is no uncertainty left -- the sampling/randomization/design variance is zero. But if you are thinking about the social process that has created those observations (trials), then you can still think about model variances that should be on the scale of 1/N -- and to get these, you would need to ignore fpc. Your design specification thus depends on which variance you want to estimate. With census regression, your are saying, "There is a line of best fit, and I am prepared to find out it does not fit the data perfectly, but if my goal is to get as close to that line of best fit as possible, then my sample logistic regression is the answer". That line of best fit is a well defined population concept; whether it makes a substantive sense or not -- that's certainly open to interpretation. With a superpopulation model, you are saying, "I know perfectly well that these and only these factors affect the probability of observing that post-trial motion, and they enter the logistic equation linearly, and all that." Your results will only be as good as your model, and you are putting a lot of trust in correct specification there. On Wed, Feb 18, 2009 at 11:04 PM, <thomashcohen@aol.com> wrote:Iâm a beginner Stata user and have a question about the svysetcommand inStata that I hope someone can help me with. For some background, I'm engaged in a logistic regression model thatexamines the likelihood of either a plaintiff or defendant filinga posttrial motion. The database I'm working with is the Civil JusticeSurvey ofState Courts (CJSSC). The CJSSC provides case level data for alltort,contract, and real property trials conclude in a sample of 46 of thenation's 75 most populous counties in 2005. Data are collected onabout8,000 trials in these 46 counties which are weighted to representabout10,500 trials concluded in the nation's 75 most populous counties. Iunderstand that one of the nice features of Stata is that itallows you totake into account the sampling structure of a dataset when doinglogisticregression modeling. Here is the Stata code that I used to take inaccountthe sampling structure of these civil trial data:svyset sitecode [pweight=bwgt0], strata(strata) fpc(fpc1) || su2,fpc(fpc2)Where Sitecode = County where the civil trial took placeBwgt0 = Weights to weight the data from 46 to the 75 most populouscountiesStrata = Strata where the counties are located. The dataset has 5stratafpc1 = The probability of a county appearing in the sample. Forexample, acounty with a weight of 2 would have a 50% probability ofappearing in thesampl esu2 = Unique identifier that identifies the trials that occurredin each ofthe 46 countiesFpc2 = 1 for all 8,000 trials disposed in the 46 counties. I gavefpc2 avalue of 1 because I wanted to tell Stata that the trials had a 100% probability of showing up in these 46 counties.I think that I got the part of this programming that deals withthe firstlevel of the sample design correct. It's the second level that I'mhavingsome problems with At the second level of the sample design, I'mtrying tocorrect for the fact that I have data for every civil trialconcluded in the46 counties. Basically, I want to tell Stata that part of thissample isactually a census of all trials concluded in the 46 counties in2005. Iunderstand Stata has a finite population correction command thattakes intoaccount the census like format of these data. The logistic regressionresults were the same irrespective of whether I used the 1st or2nd stagesin the sample design. I think this is telling me that Stata is notcorrecting for the census like aspect of this sample. Can anyonegive mesome guidance as to whether I'm correctly taking into account thesamplingstructure of these data. In particular, I would like to knowwhether I'musing the fpc2 factor correctly. Any assistance you could give onthismatter would be very much appreciated. Thanks Thomas Cohen * * For searches and help try: * http://www.stata.com/help.cgi?search * http://www.stata.com/support/statalist/faq * http://www.ats.ucla.edu/stat/stata/-- Stas Kolenikov, also found at http://stas.kolenikov.name Small print: I use this email account for mailing lists only. * * For searches and help try: * http://www.stata.com/help.cgi?search * http://www.stata.com/support/statalist/faq * http://www.ats.ucla.edu/stat/stata/

* * For searches and help try: * http://www.stata.com/help.cgi?search * http://www.stata.com/support/statalist/faq * http://www.ats.ucla.edu/stat/stata/

**Follow-Ups**:**Re: st: Question about svyset command***From:*"Michael I. Lichter" <mlichter@buffalo.edu>

**References**:**st: Question about svyset command***From:*thomashcohen@aol.com

**Re: st: Question about svyset command***From:*Stas Kolenikov <skolenik@gmail.com>

- Prev by Date:
**st: merge in mata** - Next by Date:
**Re: st: AW: compare files, vars only** - Previous by thread:
**Re: st: Question about svyset command** - Next by thread:
**Re: st: Question about svyset command** - Index(es):

© Copyright 1996–2015 StataCorp LP | Terms of use | Privacy | Contact us | What's new | Site index |