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

From |
Rune Nielsen <nielsenrune@me.com> |

To |
statalist@hsphsun2.harvard.edu |

Subject |
Re: st: prediction of model using svy-commands |

Date |
Thu, 08 Oct 2009 19:30:54 +0200 |

Hi,

svyset [pweight=vekt_alle], strata(kilde)

when I try using prvalue:

I get this error: factor variables and time-series operators not allowed

Best wishes, Rune Den 8. okt. 2009 kl. 09.42 skrev Michael I. Lichter:

What version of Stata are you using, what version of spost, whatcommand line are you using, and what do you mean by "not possible"?In Stata 10.1, using spost9, I just ran -svy: reg depvar age gender-followed by -prvalue, x(age=50)- and got a sensible answer from -prvalue- (I did not, however, verify that the answer was correct).Michael Rune Nielsen wrote:Dear statalist-members,I'm running a model (multiple linear regression) using the /svy/-prefix to adjust for a stratified sample. The outcome is log-transformed due to large left-skewing.I would like to do some predictions using prvalue from the spost-package. However, this is not possible when I've used the survey-version of/ regress/. Does anybody know a simple solution to this?I've already tried running the model without svy, but specifyingpweight and vce(cluster clustervar), but then I don't get reliableconfidence intervals.Grateful for any answers (in simple language for a non-statician) Best wishes, Rune Nielsen --- Rune Nielsen, MD, research fellow Institute of Medicine, Bergen, Norway-- Michael I. Lichter, Ph.D. <mlichter@buffalo.edu> Research Assistant Professor & NRSA Fellow UB Department of Family Medicine / Primary Care Research Institute UB Clinical Center, 462 Grider Street, Buffalo, NY 14215 Office: CC 126 / Phone: 716-898-4751 / FAX: 716-898-3536 * * 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/

**References**:**st: prediction of model using svy-commands***From:*Rune Nielsen <nielsenrune@me.com>

**Re: st: prediction of model using svy-commands***From:*"Michael I. Lichter" <MLichter@Buffalo.EDU>

- Prev by Date:
**RE: st: RE: Adjusting Range of Graph** - Next by Date:
**Re: st: prediction of model using svy-commands** - Previous by thread:
**Re: st: prediction of model using svy-commands** - Next by thread:
**st: Fun with switching point** - Index(es):

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