Displaying 20 results from an estimated 2000 matches similar to: "An example for predab.resample in r"
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
2009 Feb 06
1
Using subset in validate() in Design, what is the correct syntax?
Hi
I am trying to understand how to get the validate() function in Design
to work with the subset option. I tried this:
ovarian.cph=cph(Surv(futime, fustat) ~ age+factor(ecog.ps)+strat(rx),
time.inc=1000, x=T, y=T, data=ovarian)
validate(ovarian.cph)
#fine when no subset is used, but the following two don't work:
> validate(ovarian.cph, subset=ovarian$ecog.ps==2)
Error in
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:
2013 Jul 11
0
[R-pkgs] Major Update to rms package
The rms ("Regression Modeling Strategies") package has undergone a
massive update. The entire list of updates is at the bottom of this
note. CRAN has the update for linux and will soon have it for Windows
and Mac - check http://cran.r-project.org/web/packages/rms/ for
availability. This rms update relies on a major update of the Hmisc
package.
The most user-visible changes are:
2007 May 15
1
Re : Bootstrap sampling for repeated measures
Un texte encapsul? et encod? dans un jeu de caract?res inconnu a ?t? nettoy?...
Nom : non disponible
Url : https://stat.ethz.ch/pipermail/r-help/attachments/20070515/799f44ed/attachment.pl
2011 Mar 27
1
function to compare Brier scores from two models?
Hi,
I have probability estimates from two predictive models. I have these
estimates and also a binary outcome for a validation data set not used in
calibrating either model. I would like to calculate the Brier score for
both models on this binary outcome and test the hypothesis that the Brier
scores are equal from the two models. I have not been able to find an R
function to do this, can
2013 Jul 06
1
problem with BootCV for coxph in pec after feature selection with glmnet (lasso)
Hi,
I am attempting to evaluate the prediction error of a coxph model that was
built after feature selection with glmnet.
In the preprocessing stage I used na.omit (dataset) to remove NAs.
I reconstructed all my factor variables into binary variables with dummies
(using model.matrix)
I then used glmnet lasso to fit a cox model and select the best performing
features.
Then I fit a coxph model
2010 Oct 06
2
A problem --thank you
dear:teacher
i have a problem which about the polr()(package "MASS"), if the response must have 3 or more levels?
and how to fit the polr() to 2 levels?
thank you.
turly yours
[[alternative HTML version deleted]]
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
2010 Sep 20
5
predict.lrm ( Design package)
Dear List,
I am familier with binary models, however i am now trying to get predictions from a ordinal model and have a question.
I have a data set made up of 12 categorical predictors, the response variable is classed as 1,2,3,4,5,6, this relates to threat level of the species ( on the IUCN rating).
Previously i have combined levels 1 and 2 to form = non threatened and then combined 3-6 to
2004 Jun 08
0
bootstrap: stratified resampling
Dear All,
I was writing a small wrapper to bootstrap a classification algorithm, but if
we generate the indices in the "usual way" as:
bootindex <- sample(index, N, replace = TRUE)
there is a non-zero probability that all the samples belong to only
one class, thus leading to problems in the fitting (or that some classes will
end up with only one sample, which will be a problem
2013 Jan 24
4
Difference between R and SAS in Corcordance index in ordinal logistic regression
lrm does some binning to make the calculations faster. The exact calculation
is obtained by running
f <- lrm(...)
rcorr.cens(predict(f), DA), which results in:
C Index Dxy S.D. n missing
0.96814404 0.93628809 0.03808336 32.00000000 0.00000000
uncensored Relevant Pairs Concordant Uncertain
32.00000000
2011 May 18
1
logistic regression lrm() output
Hi, I am trying to run a simple logistic regression using lrm() to calculate a
odds ratio. I found a confusing output when I use summary() on the fit object
which gave some OR that is totally different from simply taking
exp(coefficient), see below:
> dat<-read.table("dat.txt",sep='\t',header=T,row.names=NULL)
> d<-datadist(dat)
> options(datadist='d')
2023 Jan 10
1
My forest plot is not fit to windows in R software
Dear Prof.Thank you for your kind response. I have only used:
install.packages("tidyverse")
install.packages("meta")
install.packages("metafor")
library(tidyverse)
library(meta)
library(metafor)and then,forest.meta(hidemeta, layout="RevMan5", xlab="Proportion", comb.r=T, comb.f=F, xlim = c(0,1), fontsize=10, digits=3)Unfortunately I am not
2010 Aug 13
1
val.prob in the Design package - Calibrated Brier Score
Hello,
I am using the val.prob function in the Design package. I understand how
the Brier quadratic error score is calculated, but I do not know how the
Brier score computed on the calibrated rather than raw predicted
probabilities (B cal) is calculated. My question is: how are the calibrated
probabilities calculated? Any explanation of this, or references to
explanations of this, would be
2014 Jun 12
3
(no subject)
can you play my song on your radio this is french subversive reggae but i
also play rap if you like i can send you other songs
azad
2011 Aug 20
1
val.surv
Dear R-users,
I have two questions regarding validation and calibration of Survival regression models.
1. I am trying to calibrate and validate a cox model using val.surv.
here is my code:
f.1<-cph(Surv(time,event)~age, x=T, y=T, data=train)
test1<-test[,"age"]
val.surv(f.1, newdata=data.frame(test1), u=10)
but I get an error message:
Error in val.surv(f.1, newdata
2010 Aug 15
1
calibration plot labels
Dear all,
when i do the calibration plot, i put the x label y label , there is
some labels are i did not put it , like "resample optimism added ..." i
want to get rid of the these label , is any body know how can i get rid of these label.
these are the following command i used
cal <- calibrate(f, u=12, method=c("boot"), B=100,m=70, data=a1)
2017 Sep 14
3
Help understanding why glm and lrm.fit runs with my data, but lrm does not
Dear all,
I am using the publically available GustoW dataset. The exact version I am using is available here: https://drive.google.com/open?id=0B4oZ2TQA0PAoUm85UzBFNjZ0Ulk
I would like to produce a nomogram for 5 covariates - AGE, HYP, KILLIP, HRT and ANT. I have successfully fitted a logistic regression model using the "glm" function as shown below.
library(rms)
gusto <-