Hello, Based on replies (which I'm gratefull for) I guess the only solution is to create a package, that will contain function to build lm()-like linear models, and allow weighting cases (as I described two days ago). This would also alow buliding those models for data in aggregated form without a need for using e.g. expand$grid(). Thank you again for replies. ~,~`~,~`~,~`~,~`~,~`~,~`~,~`~,~`~,~`~,~`~,~`~,~`~,~`~,~`~,~`~,~ Michal Bojanowski mailto:mbojanowski at samba.iss.uw.edu.pl Polish General Social Survey Institute for Social Studies University of Warsaw http://www.iss.uw.edu.pl/ -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
analysing data with case weights: rejoinder
4 messages · Michal Bojanowski, Peter Dalgaard, Thomas Lumley
On Fri, 15 Nov 2002, bojaniss wrote:
Hello, Based on replies (which I'm gratefull for) I guess the only solution is to create a package, that will contain function to build lm()-like linear models, and allow weighting cases (as I described two days ago). This would also alow buliding those models for data in aggregated form without a need for using e.g. expand$grid().
There's no problem with data in aggregated form, only with probability weighting. -thomas -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
Thomas Lumley <tlumley at u.washington.edu> writes:
On Fri, 15 Nov 2002, bojaniss wrote:
Hello, Based on replies (which I'm gratefull for) I guess the only solution is to create a package, that will contain function to build lm()-like linear models, and allow weighting cases (as I described two days ago). This would also alow buliding those models for data in aggregated form without a need for using e.g. expand$grid().
There's no problem with data in aggregated form, only with probability weighting.
Depends on what you mean with "aggregation" doesn't it? If you have "replication weights" (counts of data with given value), I think you still have problems.
O__ ---- Peter Dalgaard Blegdamsvej 3 c/ /'_ --- Dept. of Biostatistics 2200 Cph. N (*) \(*) -- University of Copenhagen Denmark Ph: (+45) 35327918 ~~~~~~~~~~ - (p.dalgaard at biostat.ku.dk) FAX: (+45) 35327907 -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
On 15 Nov 2002, Peter Dalgaard BSA wrote:
Thomas Lumley <tlumley at u.washington.edu> writes:
On Fri, 15 Nov 2002, bojaniss wrote:
Hello, Based on replies (which I'm gratefull for) I guess the only solution is to create a package, that will contain function to build lm()-like linear models, and allow weighting cases (as I described two days ago). This would also alow buliding those models for data in aggregated form without a need for using e.g. expand$grid().
There's no problem with data in aggregated form, only with probability weighting.
Depends on what you mean with "aggregation" doesn't it? If you have "replication weights" (counts of data with given value), I think you still have problems.
There's no problem for categorical data, which is the case where you most likely to have counts of data with given value. With a linear model you can aggregate further to get an average value over each covariate pattern and then have variance weights -thomas -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._