Displaying 20 results from an estimated 9000 matches similar to: "Tolerance levels in stepwise regression"
2011 Aug 03
1
Case-by-case tolerance needed for successful integrate()
Hello,
We are trying to use R to simulate a model based on parameters 'a' and 'b'.
This involves the following integration:
model<-function(s,x,a,b)(exp(-s*x*10^-5.5)*(s^(a-1)*(1-s)^(b-1)))
g<- function(x,a,b){
out<-c()
for (i in 1:length(x)){
out[i]<-1- (integrate(model,0,1,x[i],a,b)$value / beta(a,b))
}
out
}
x<-
2005 Dec 08
1
mle.stepwise versus step/stepAIC
Hello,
I have a question pertaining to the stepwise regression which I am trying to
perform. I have a data set in which I have 14 predictor variables
accompanying my response variable. I am not sure what the difference is
between the function "mle.stepwise" found in the wle package and the
functions "step" or "stepAIC"? When would one use
2003 Jun 20
2
stepwise regression
Hi,
S-PLUS includes the function "stepwise" which can use a variety of
methods to conduct stepwise multiple linear regression on a set of
predictors. Does a similar function exist in R? I'm having difficulty
finding one. If there is one it must be under a different name because
I get an error message when I try 'help(stepwise)' in R.
Thanks for your help,
Andy Taylor
2012 Nov 15
1
Stepwise regression scope: all interacting terms (.^2)
Dear Gurus,
Thank you in advance for your assistance. I'm trying to understand scope better when performing stepwise regression using "step." I have a model with a binary response variable and 10 predictor variables. When I perform stepwise regression I define scope=.^2 to allow interactions between all terms. But I am missing something. When I perform stepwise regression (both
2009 Oct 22
4
Bayesian regression stepwise function?
Hi everyone,
I am wondering if there exists a stepwise regression function for the
Bayesian regression model. I tried googling, but I couldn't find anything.
I know "step" function exists for regular stepwise regression, but nothing
for Bayes.
Thanks
--
View this message in context: http://www.nabble.com/Bayesian-regression-stepwise-function--tp26013725p26013725.html
Sent from
2012 Feb 17
3
stepwise selection for conditional logistic regression
Hi,
Is there any function available to do stepwise selection of variables in Conditional(matched) logistic regression( clogit)? step, stepwise etc are failing in case of conditional logistic regression. Please help.
Thanks
P.T. Subha
[[alternative HTML version deleted]]
2006 Apr 28
4
stepwise regression
Dear all,
I have encountered a problem when perform stepwise regression.
The dataset have more 9 independent variables, but 7 observation.
In R, before performing stepwise, a lm object should be given.
fm <- lm(y ~ X1 + X2 + X3 + X11 + X22 + X33 + X12 + X13 + X23)
However, summary(fm) will give:
Residual standard error: NaN on 0 degrees of freedom
Multiple R-Squared: 1, Adjusted
2011 May 25
2
stepwise selection cox model
Sorry, I have wrote a wrong subject in the first email!
Regards,
Linda
---------- Forwarded message ----------
From: linda Porz <linda.porz@gmail.com>
Date: 2011/5/25
Subject: combined odds ratio
To: r-help@r-project.org
Cc: r-help-request@stat.math.ethz.ch
Dear all,
I am looking for an R function which does stepwise selection cox model in r
(delta chisq likelihood ratio test) similar
2010 Aug 14
2
Stepwise Regression + entry/exit significance level
Hi R,
Does the "step" function used to perform stepwise regression has the
option to specify the entry/exit significance levels for the independent
variables? (This is similar to the 'slentry' and 'slstay' option in
'Proc reg' of SAS.). Or do we have any other package which does the
above? Thanks.
Thanks and Regards,
Shubha
This e-mail may
1999 Jun 18
1
Stepwise model selection question
I use the step() function occasionally, and I think I understand its
objective, proper use, and limitations. Now I see stepwise model selection
being used in what seems to be an unusual way, and I wonder if it is right
or wrong. May I describe?
Genetic mapping tries to find where in an animal's genome are genetic
elements that influence a particular physical trait. Say there are 100
2003 Jun 20
1
[OFF] stepwise using REML???
Hi,
I know that is not possible make a stepwise procedure using REML in R, I can
use ML for this.
For nested design it may be very dangerous due the difference in variance
structure, mainly in a splitplot design. ML make significative variables that
REML dont make.
I read an article that is made a stepwise procedure using GENSTAT.
from article:
"Terms were dropped from a model in a
2008 May 09
2
Stepwise regression
I am using stepAIC for stepwise regression modeling.
Is there a way to change the entry and exit alpha levels for the
stepwise regression using stepAIC ?
Many thanks,
Berthold
Berthold Stegemann
Bakken Research Center
Maastricht
The Netherlands
[[alternative HTML version deleted]]
2011 Nov 04
2
Select some, but not all, variables stepwise
Hi,
I would like to fit a linear model where some but not all explanators are chosen stepwise - ie I definitely want to include some terms, but others only if they are deemed significant (by AIC or whatever other approach is available). For example if I wanted to definitely include x1 and x2, but only include z1 and z2 if they are significant, something like this:
df <-
2012 Nov 19
9
Stepwise analysis with fixed variables
Hello,
How can I run a backward stepwise regression with part of the variables
fixed, while the others participate in the backward stepwise analysis?
Thank you, Einat
--
View this message in context: http://r.789695.n4.nabble.com/Stepwise-analysis-with-fixed-variables-tp4650015.html
Sent from the R help mailing list archive at Nabble.com.
2007 Sep 27
1
SAS proc reg stepwise procedure in R
I try to reproduce the SAS proc reg stepwise model selection procedure in R, but the only function I found was "step" which select new variables based on AIC. The SAS procedure I use add a new variable to the model based on F statistics and a pre defined significant level. Then before any new variables are added variables in the model that not meet F statistics at the significant level
2011 Dec 22
2
Stepwise in lme
I'm manually doing a form of stepwise regression in a mixed model but with
many variables, it is time consuming. I thought I'd try to use an automated
approach. stepAIC gave me false convergence when I used it with my model,
so I thought it can't be hard to set up a basic program to do it based on
the p-values. Thus I tried a couple of (very) crude options:
1) trying to
2003 May 08
2
Forward Stepwise regression with stepAIC and step
Dear all,
I cannot seem to get the R functions step or stepAIC to perform forward
or stepwise regression as I expect. I have enclosed the example data in
a dataframe at the end of this mail. Note rubbish is and rnorm(17) variable
which I have deliberately added to the data to test the stepwise procedure.
I have used
wateruse.lm<-lm(waterusage~.,data=wateruse) # Fit full model
2001 Nov 30
1
Stepwise regression
I need to do a classic stepwise regression based not on AIC but on F in and
F out (or on R2, or R2 adjusted). I have many variables and it will very
useful for me to have a fast stepwise algorithm. Does anyone know if this
exists for R and where I can find that ?
Thank you very much.
Pascal Grandeau
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing
2012 Mar 05
1
Forward stepwise regression using lmStepAIC in Caret
I'm looking for guidance on how to implement forward stepwise regression
using lmStepAIC in Caret.
The stepwise "direction" appears to default to "backward". When I try to
use "scope" to provide a lower and upper model, Caret still seems to
default to "backward".
Any thoughts on how I can make this work?
Here is what I tried:
itemonly <-
2008 Sep 04
1
Stepwise
Hi,
Is there any facility in R to perform a stepwise process on a model,
which will remove any highly-correlated explanatory variables? I am told
there is in SPSS. I have a large number of variables (some correlated),
which I would like to just chuck in to a model and perform stepwise and
see what comes out the other end, to give me an idea perhaps as to which
variables I should focus on.
Thanks