Displaying 20 results from an estimated 3000 matches similar to: "model selection using logistf package"
2005 Oct 27
2
how to predict with logistic model in package logistf ?
dear community,
I am a beginer in R , and can't predict with logistic model in package
logistf,
could anyone help me ? thanks !
the following is my command and result :
>library(logistf)
>data(sex2)
>fit<-logistf(case ~ age+oc+vic+vicl+vis+dia, data=sex2)
>predict(fit,newdata=sex2)
Error in predict(fit, newdata = sex2) : no applicable method for
"predict"
2013 Feb 27
1
Separation issue in binary response models - glm, brglm, logistf
Dear all,
I am encountering some issues with my data and need some help.
I am trying to run glm analysis with a presence/absence variable as
response variable and several explanatory variable (time, location,
presence/absence data, abundance data).
First I tried to use the glm() function, however I was having 2 warnings
concerning glm.fit () :
# 1: glm.fit: algorithm did not converge
# 2:
2010 Mar 09
1
penalized maximum likelihood estimation and logistf
Hi, I got two questions and would really appreciate any help from here.
First, is the penalized maximum likelihood estimation(Firth Type Estimation)
only fit for binary response (0,1 or TRUE, FALSE)? Can it be applied to
multinomial logistic regression?
If yes, what's the formula for LL and U(beta_i)? Can someone point me to
the right reference?
Second, when I used *logistf *on a dataset with
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
2008 Sep 16
1
logistf error message
I am new to using R. Currently, I am using the logistf package to run logistic regression analysis. When I run the following line of code:
attach(snpriskdata)
logisticpaper<-logistf(sascasecon~saspackyrs+newsbmi+EDUCATION+sasagedx+sasflung+condobst+sasadultasprev)
I get the following error message:
Error in sum(y) : invalid 'type' (character) of argument
What does this error
2009 Oct 14
2
Handle lot of variables - Regression
Hey,
I've got a data set (e.g. named Data) which contains a lot of variables, for
example: s1, s2, ..., s50
My first question is:
It is possible to do this: Data$s1
But is it also possible to do something like this: Data$s1:s50 (I've tried a
lot of versions of those without a result)
My second question:
I want to do a stepwise logistic regression. For this purpose I use the
following
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
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]]
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
2005 Feb 07
3
problem with logistic regression
Hi,
we try to do a logistic regression with the function glm.
But we notice that this function don't give the same results as the SAS proc
catmod (differents estimate given).
We try to change the contrast on R system with:
> options(contrasts=c(unordered="contr.SAS",ordered="contr.poly"))
We also try with brlr and logistf functions.
Unfortunately, the estimate
2006 Apr 11
2
variable selection when categorical variables are available
Dear All,
Probably it is not highly relevant question: Why do stepwise regression
functions in R (step() or stepAIC()) add/delete categorical variables as a
set? For example, I have a four-level factor variable d, so dummies are
d1,d2,d3, as stepwise regression operates d, adding or removing, d1,d2,d3
are simultaneously added/removed. What's the concern here if operating
dummies individually?
2010 Jun 29
2
process of stepwise selection
Dear list,
I wanna select the significant variables relative to bird distribution,
using stepwise method.
However, the result is always the best-fit model.
Please kindly suggest if it is possible to show the selection process.
Thank you
Elaine
[[alternative HTML version deleted]]
2000 Jun 07
1
forward stepwise selection
Dear R-Help,
My problem/bug came to light,when fitting a linear model using stepwise
selection. I'd started with the straightfoward command
step(lm(y~., dataset))
This worked fine, but because this starts with all the possible
explanatory variables, it results in a model with too many explanatory
variables. Hence I wanted to start with just a constant and do forward
selection, to get a
2012 Oct 26
1
backward stepwise model selection
Hi All,
I know in R there is function named 'step', which does the stepwise regression and choose the model by AIC. However, if I want to choose a model per this logic:
1. Run a full model (linear regression, f = lm(y ~., data = ZZZ), for example)
2. Pick up the variable with biggest p value, delete it from the module and get a new regression model.
3. Repeat step 2
2009 Sep 03
2
variable selection in logistic
Hi, R users,
What may be the best function in R to do variable selection in logistic
regression? I have the same number of variables as the number of samples,
and I want to select the best variablesfor prediction. Is there any function
doing forward selection followed by backward elimination in stepwise
logistic regression?
Thanks,
Annie
[[alternative HTML version deleted]]
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
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 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
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