[R] Weighted regression in rms/Hmisc
f.harrell at vanderbilt.edu
Sun May 19 15:45:01 CEST 2013
You should be able to pass a weights argument through fit.mult.impute to ols.
I assume that weights are with respect to variables that you, for some
reason, do not want to have as predictors. Otherwise you are already
conditioning on the weighting factors and no weights are needed.
Mullah Abu Shadeque wrote
> Hi all,
> While using the following package and code:
> ~ NearestWeekGestation + MaternalBMI + MomAge_Years +
> WtGain + ethnicity , n.impute=10
> test.mod<-fit.mult.impute(BirthWeight_g ~ rcs(NearestWeekGestation,4)
> rcs(MaternalBMI,4) + rcs(MomAge_Years,4)
> + rcs(WtGain,4) + ethnicity
> can I specify for weighted OLS here where I have a defined weight vector
> would be highly helped and grateful to you if you kindly reply to my mail.
> [[alternative HTML version deleted]]
> mailing list
> PLEASE do read the posting guide
> and provide commented, minimal, self-contained, reproducible code.
Department of Biostatistics, Vanderbilt University
View this message in context: http://r.789695.n4.nabble.com/Weighted-regression-in-rms-Hmisc-tp4667437p4667446.html
Sent from the R help mailing list archive at Nabble.com.
More information about the R-help