Displaying 20 results from an estimated 5000 matches similar to: "Getting "Approximate Estimates after Deleting Factors" out from fastbw()"
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
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
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 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?
2013 Apr 30
0
Fastbw() function: grouping of variables
Dear R users,
For the purpose of validating a prediction model using validate() from the rms package, I am running into some trouble with using the fastbw() function breaking up natural groups of variables.
Is there any way I can specify to keep certain variable together? In particular, if interactions are included I would also like to keep the main effects in the model.
Another example is a
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
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
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:
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
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
2009 Sep 17
2
QQ plotting of various distributions...
Hello!
I am trying with this question again:
I would like to test few distributional assumptions for some behavioral
response data. There are few theories about true distribution of those
data, like: normal, lognormal, gamma, ex-Gaussian
(exponential-Gaussian), Wald (inverse Gaussian) etc. The best way would
be via qq-plot, to show to students differences. First two are trivial:
qqnorm(dat$X)
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
2009 Sep 08
2
Very basic question regarding plot.Design...
Hello ALL!
I have a problem to plot factor (lets say gender) as a line, or at least
both line and point, from ols model:
ols1 <- ols(Y ~ gender, data=dat, x=T, y=T)
plot(ols1, gender=NA, xlab="gender", ylab="Y",
ylim=c(5,30), conf.int=FALSE)
If I convert gender into discrete numeric predictor, and use
forceLines=TRUE, plot is not nice and true, since it shows values
2010 Dec 01
1
Prawn : undefined method `make_table'
require ''prawn''
require ''prawn/core''
require ''prawn/layout''
Prawn::Document.new do |pdf|
subtable = pdf.make_table([[ "foo", "bar" ], [ "baz", "bax" ]],
:column_widths => [ 50, 50 ]) {
column(0).background_color = "808080"
cells.borders = []
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 Jun 03
2
Checking and building package
Hello!
I am truing to compile an R-package having c-code. I put foo.c in src/
folder and useDynLib("foo") in NAMESPACE file. When trying R CMD check,
I got an error message that shared object 'foo' is not found. Then I did
R CMD SHLIB foo.c first. However, after that, I got warnings from R CMD
check that there is an object file in /src folder. Even worse is if I
run R CMD
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.
2012 Apr 18
3
Installing texlive dependencies
Hello ALL!
I am running Fedora 16 x86_64. Due to some dubious problems, that i
couldn't resolve, with the TeXLive (2007, which is a default), I removed
it. That removed R as well, and some other dependent packages. Then, I
installed TeXLive 2011 from CTAN. However, when I wanted to install R,
from Fedora's repositories, it asks for some TeX dependencies (for
example, tex-preview,
2007 Mar 21
2
Detailed legend in mathplot ...
Hello,
Recently, I have asked for a help with building graphs, and I got few
great advices. Now, my appetite is growing :) and I wander how to add
legend for two (or more) lines in following example:
matplot(DAT[, c(3,4)], type="b", ylim=c(0,8), xaxt="n", yaxt="n",
+ pch=c(21,22), col="black", lty=c("dashed","solid"), xlab="",