Displaying 20 results from an estimated 100 matches similar to: "Fastbw() function: grouping of variables"
2010 Feb 12
1
validate (rms package) using step instead of fastbw
Dear All,
For logistic regression models: is it possible to use validate (rms
package) to compute bias-corrected AUC, but have variable selection
with AIC use step (or stepAIC, from MASS), instead of fastbw?
More details:
I've been using the validate function (in the rms package, by Frank
Harrell) to obtain, among other things, bootstrap bias-corrected
estimates of the AUC, when variable
2005 Mar 30
1
fastbw question
Hello
I am running R 2.0.1 on Windows, I am attempting to use Frank Harrell's
'fastbw' function (from the Design library), but I get an error that the
fit was not created with a Design library fitting function; yet when I
go to the help for fastbw (and also look in Frank's book Regression
Modeling Strategies) it appears that fastbw should work with a model
created with lm.....
2011 Apr 28
1
Nomograms from rms' fastbw output objects
There is both a technical and a theoretical element to my question...
Should I be able to use the outputs which arise from the fastbw function
as inputs to nomogram(). I seem to be failing at this, -- I obtain a
subscript out of range error.
That I can't do this may speak to technical failings, but I suspect it
is because Prof Harrell thinks/knows it injudicious. However, I can't
2011 Aug 19
0
rms:fastbw variable selection differences with AIC .vs. p value methods
I want to employ a parsimonious model to draw nomograms, as the full
model is too complex to draw nomograms readily (several interactions of
continuous variables). However, one interesting variable stays or
leaves based on whether I choose "p value" or "AIC" options to
fastbw(). My question boils down to this: Is there a theoretical reason
to prefer one over another?
2008 Feb 20
1
fastbw() in Design works for continuous variable?
Hi, it seems that the fastbw() in the Design package
only works with variable of class "factor" according
to the help page if I understand correctly. Is there
any R function/package that do stepwise variable
selection for a Cox model with continuous independent
variables?
Thank you
John
____________________________________________________________________________________
Looking
2013 Sep 12
1
Getting "Approximate Estimates after Deleting Factors" out from fastbw()
Hello!
I am using relatively simple linear model. By applying fastbw() on ols() results from rms package I would like to get subtable "Approximate Estimates after Deleting Factors". However, it seems this is not possible. Am I right? I can only get coefficients for variables kept in the model (for example: x$coefficients), but not S.E., Wald's Z and P?
Is there any easy way to
2009 Oct 27
1
output (p-values) of "fastbw" in Design package
I am using the validate option in the Design package with the Cox survival model.
I am using the bw=T option which, like the fastbw function, performs a backward elimination variable selection
The output includes a series of columns (below) giving information on eliminated variables.
My question is that I am unsure of the difference between the 2 p-values given (the one after Chi-Sq and the one
2012 Jul 20
0
Forced inclusion of varaibles in validate command as well as step
Dear prof. Harrell,
I'm not able to use the force option with fastbw, here an example of the error I've got (dataset stagec rpart package):
> fitstc <- cph(Surv(stagec$pgtime,stagec$pgstat) ~ age + eet + g2 + grade + gleason + ploidy, data=stagec)
> fbwstc <- fastbw(fitstc,rule="aic",type="individual")
> fbwstc
Deleted Chi-Sq d.f. P Residual d.f.
2011 Jun 16
0
Hauck-Donner
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On 06/16/2011 01:47 PM, Rob James wrote:
> Ben,
>
> Thanks for this. Very helpful and clearly others have tripped over the
> same problem
> I would have supposed that the solution was to ask lrm (or glm) to use
> LR rather than Wald, but I don't see syntax to achieve this.
Typically drop1 or dropterm (MASS package) will drop
2005 Jul 12
1
Design: predict.lrm does not recognise lrm.fit object
Hello
I'm using logistic regression from the Design library (lrm), then fastbw to
undertake a backward selection and create a reduced model, before trying to
make predictions against an independent set of data using predict.lrm with
the reduced model. I wouldn't normally use this method, but I'm
contrasting the results with an AIC/MMI approach. The script contains:
# Determine full
2011 Mar 01
0
Major update to rms package
A new version of rms is now available on CRAN for Linux and Windows (Mac
will probably be available very soon). Largest changes include latex
methods for validate.* and adding the capability to force a subset of
variables to be included in all backwards stepdown models (single model or
validation by resampling).
Recent updates:
* In survplot.rms, fixed bug (curves were undefined if
2011 Mar 01
0
Major update to rms package
A new version of rms is now available on CRAN for Linux and Windows (Mac
will probably be available very soon). Largest changes include latex
methods for validate.* and adding the capability to force a subset of
variables to be included in all backwards stepdown models (single model or
validation by resampling).
Recent updates:
* In survplot.rms, fixed bug (curves were undefined if
2011 Jan 20
0
selecting predictors for model from dataframe
Dear all,
I think I have a rather strange question, but I'd like to give it a try:
I want to perform a simulation numerous times, thats why I can't do it by
hand. I sample a small dataset from a very large one, and use backward
selection to select significant predictors for some arbitrary outcome
variable Y. These predictors are to be placed in a model, and regression
coefficients
2013 Apr 19
2
NAMESPACE and imports
I am cleaning up the rms package to not export functions not to be called
directly by users. rms uses generic functions defined in other packages.
For example there is a latex method in the Hmisc package, and rms has a
latex method for objects of class "anova.rms" so there are anova.rms and
latex.anova.rms functions in rms. I use:
2010 May 20
1
[Off topic?] Time dependent Cox model fitting and validation
DeaR users.
<framework>
These days i'm working on fitting an extended Cox model with
time-dependent covariables and possibly time-varying effects. My
data are in counting process format as described in Therneau&Grambsh's
`Modeling Survival Data', page 68. I'm trying to follow Harrell's
`Regression Modeling Strategies' advices for the choice of my model.
This
2005 Mar 10
2
Logistic regression goodness of fit tests
I was unsure of what suitable goodness-of-fit tests existed in R for logistic regression. After searching the R-help archive I found that using the Design models and resid, could be used to calculate this as follows:
d <- datadist(mydataframe)
options(datadist = 'd')
fit <- lrm(response ~ predictor1 + predictor2..., data=mydataframe, x =T, y=T)
resid(fit, 'gof').
I set up a
2011 May 15
5
Question on approximations of full logistic regression model
Hi,
I am trying to construct a logistic regression model from my data (104
patients and 25 events). I build a full model consisting of five
predictors with the use of penalization by rms package (lrm, pentrace
etc) because of events per variable issue. Then, I tried to approximate
the full model by step-down technique predicting L from all of the
componet variables using ordinary least squares
2004 Sep 09
2
Rd syntax error detected in CRAN daily checks
Please forgive me if you already received this. I had an e-mail sending
glitch this morning.
http://cran.r-project.org/src/contrib/checkSummary.html reported an
error in Design.trans.Rd
* checking Rd files ... ERROR
Rd files with syntax errors:
/var/mnt/hda3/R.check/r-devel/PKGS/Design/man/Design.trans.Rd:
unterminated section 'alias'
The .Rd file is attached. It begins
2006 Jan 30
4
Logistic regression model selection with overdispersed/autocorrelated data
I am creating habitat selection models for caribou and other species with
data collected from GPS collars. In my current situation the radio-collars
recorded the locations of 30 caribou every 6 hours. I am then comparing
resources used at caribou locations to random locations using logistic
regression (standard habitat analysis).
The data is therefore highly autocorrelated and this causes Type
2011 Feb 25
1
Forced inclusion of varaibles in validate command as well as step
Hello all
I am a very new R user
I am used to using STATA
My problem:
I want to build a Cox model and validate this.
I have a large number of clinical relevant factors and feel the need to
reduce these. Meanwhile I have some clinical variables I deem sufficiently
important to force into the model regardless of AIC or p value.
This is my present log over commands