similar to: apply lm.beta() to rlm object (robust regression)

Displaying 20 results from an estimated 30000 matches similar to: "apply lm.beta() to rlm object (robust regression)"

2005 Mar 24
1
Robust multivariate regression with rlm
Dear Group, I am having trouble with using rlm on multivariate data sets. When I call rlm I get Error in lm.wfit(x, y, w, method = "qr") : incompatible dimensions lm on the same data sets seem to work well (see code example). Am I doing something wrong? I have already browsed through the forums and google but could not find any related discussions. I use Windows XP and R
2006 Apr 06
5
pros and cons of "robust regression"? (i.e. rlm vs lm)
Can anyone comment or point me to a discussion of the pros and cons of robust regressions, vs. a more "manual" approach to trimming outliers and/or "normalizing" data used in regression analysis?
2011 Mar 14
1
discrepancy between lm and MASS:rlm
Dear R-devel, There seems to be a discrepancy in the order in which lm and rlm evaluate their arguments. This causes rlm to sometimes produce an error where lm is just fine. Here is a little script that illustrate the issue: > library(MASS) > ## create data > n <- 100 > dat <- data.frame(x=rep(c(-1,0,1), n), y=rnorm(3*n)) > > ## call lm, works fine > summary(lm(y ~
2004 Nov 02
1
Robust Poisson regression
Hola! Anybody knows if there exists somewhere in R some implementation of robust Poisson regression, where robust is taken in the sense as usen in rlm(MASS). I found something in the package wle, but only for the Poisson distribution, not for regression. For the moment I try to use linear models with the square-root transformation, and rlm. Kjetil -- Kjetil Halvorsen. Peace is the most
2010 Dec 13
1
Wrong contrast matrix for nested factors in lm(), rlm(), and lmRob()
This message also reports wrong estimates produced by lmRob.fit.compute() for nested factors when using the correct contrast matrix. And in these respects, I have found that S-Plus behaves the same way as R. Using the three available contrast types (sum, treatment, helmert) with lm() or lm.fit(), but just contr.sum with rlm() and lmRob(), and small examples, I generated contrast matrices for
2006 Mar 30
0
Robust measures of goodness of fit?
Dear all, I have been using rlm() for robust regression. Could someone please suggest an appropriate measure of goodness-of-fit [1]? All I've found after trawling the web, literature databases, and previous r-help posts, is the "robust R^2" on pp. 362-363 of the S-plus manual, which is available at http://web.mit.edu/afs/athena/software/splus_v7.0/www/statman1.pdf (7.57 MB)
2008 May 11
0
Robust Stepwise Regression
Hello, I am interested in performing a stepwise regression using the robust regression technique to estimate the models at each stage. At the moment I am using the lm code and the stepAIC code to select the "best" OLS model. This final model is then re-estimated using the rlm code. I am hoping there is a better was to do this, where at each step of the "stepwise" code the
2003 Nov 14
1
What goodness-of-fit measure for robust regression ?
Hi, i. After estimating some coefficients using robust regression with rlm() or lqs(), I wonder if there exist some measures of the goodness-of-fit as those for standard linear model(R2)... or evenly if it's a statistics non-sense to look for since I do not find any mention of that in differents chapters on robust and resistant regression or in severals R documentation (Fox, Ripley and
2004 Apr 27
0
lmRobMM vs rlm
I am needing some expertise with regard to the S-Plus command lmRobMM and its R counterpart rlm(formula,data,method="MM") I have used lmRobMM(formula,data) in S-Plus on the Stackloss data and obtained for my residuals 6.217777 1.150717 6.427946 8.174019 -0.6713005 -1.248641 -0.4236203 0.5763797 -1.057899 0.3593823 11 12 13 14 15 16
2006 Oct 06
1
Goodness of fit with robust regression
Dear list members, I have been doing robust regressions in R, using the MASS package for rlm and robustbase for logistic regressions. I must be doing something wrong, because my output does not include r-squares (or adjusted r-squares), or, in the case of glmrob, -2log likelihoods. Does anyone know how to get an output that includes these? Thanks so much for the help
2008 May 14
1
rlm and lmrob error messages
Hello all, I'm using R2.7.0 (on Windows 2000) and I'm trying do run a robust regression on following model structure: model = "Y ~ x1*x2 / (x3 + x4 + x5 +x6)" where x1 and x2 are both factors (either 1 or 0) and x3.....x6 are numeric. The error code I get when running rlm(as.formula(model), data=daymean) is: error in rlm.default(x, y, weights, method = method, wt.method =
2003 Jul 30
2
robust regression
Hi, trying to do a robudt regression of a two-way linear model, I keep getting the following error: > lqs(obs ~ y + s -1,method="lms", contrasts=list(s=("contr.sum"))) Error: lqs failed: all the samples were singular Robust regression with M-estimators works (also regular least square fits, of course): rlm.formula(formula = obs ~ y + s - 1, method = "M",
2010 Aug 17
0
Singular error in rlm
I am absolutely new to R and I am aware of only a few basic command lines. I was running a robust regression in R, using the following command line library (MASS) rfmodel2 <- rlm (TotalEmployment_2005 ~ ALABAMA + MISSISSIPPI + LOUISIANA + TotalEmployment_2000 + PCWhitePop_2005 + UnemploymentRate_2005 + PCUrbanPop2000 + PCPeopleWithACollegeDegree_2000 +
2004 Jun 02
2
poisson regression with robust error variance ('eyestudy')
Dear all, i am trying to redo the 'eyestudy' analysis presented on the site http://www.ats.ucla.edu/stat/stata/faq/relative_risk.htm with R (1.9.0), with special interest in the section on "relative risk estimation by poisson regression with robust error variance". so i guess rlm is the function to use. but what is its equivalent to the glm's argument "family"
2007 Jun 07
3
rlm results on trellis plot
How do I add to a trellis plot the best fit line from a robust fit? I can use panel.lm to add a least squares fit, but there is no panel.rlm function. -- Alan S Barnett <asb at mail.nih.gov> NIMH/CBDB
2005 Sep 06
0
MASS: rlm, MM and errors in observations AND regressors
Hello, I need to perform a robust regression on data which contains errors in BOTH observations and regressors. Right now I am using rlm from the MASS package with 'method="MM"' and get visually very nice results. MASS is quite clear, however, that the described methodologies are only applicable to observation-error only data (p. 157, 4th Ed.). So here's the questions now:
2011 Mar 16
0
cross validation? when rlm, lmrob or lmRob
Dear community, I have fitted a model using comands above, (rlm, lmrob or lmRob). I don't have new data to validate de models obtained. I was wondering if exists something similar to CVlm in robust regression. In case there isn't, any suggestion for validation would be appreciated. Thanks, user at host.com -- View this message in context:
2005 Nov 13
4
Robust Non-linear Regression
Hi, I'm trying to use Robust non-linear regression to fit dose response curves. Maybe I didnt look good enough, but I dind't find robust methods for NON linear regression implemented in R. A method that looked good to me but is unfortunately not (yet) implemented in R is described in http://www.graphpad.com/articles/RobustNonlinearRegression_files/frame.htm
2007 Sep 04
1
Robust linear models and unequal variance
Hi all, I have probably a basic question, but I can't seem to find the answer in the literature or in the R-archives. I would like to do a robust ANCOVA (using either rlm or lmRob of the MASS and robust packages) - my response variable deviates slightly from normal and I have some "outliers". The data consist of 2 factor variables and 3-5 covariates (fdepending on the model).
2008 Dec 08
1
residual standard error in rlm (MASS package)
Hi, I would appreciate of someone could explain how the residual standard error is computed for rlm models (MASS package). Usually, one would expect to get the residual standard error by > sqrt(sum((y-fitted(fm))^2)/(n-2)) where y is the response, fm a linear model with an intercept and slope for x and n the number of observations. This does not seem to work for rlm models and I am wondering