*
*Department of UrologyFudan University Shanghai Cancer CenterShanghai,
China*
2014/1/5 Michael Friendly frien...@yorku.ca
On 1/4/2014 12:39 AM, zhu yao wrote:
Dear Sir
Many papers calculated the p value of trends for odds ratios of ordered
category variables. I have found the tabodds command
Thanks peter.
*Yao Zhu*
*Department of UrologyFudan University Shanghai Cancer CenterShanghai,
China*
2014/1/5 peter dalgaard pda...@gmail.com
On 04 Jan 2014, at 13:56 , zhu yao mailzhu...@gmail.com wrote:
Thanks for the suggestion.
The results is presented in following table
I have use the plot(summary(cph-fit)) to plot the hazard ratio plot.
*Can I change the reference level in the plot, for example, use [1999,
2002) as the reference level?*
*Thanks*
*Yao Zhu*
*Department of Urology Fudan University Shanghai Cancer CenterShanghai,
China*
[[alternative
Dear Sir
Many papers calculated the p value of trends for odds ratios of ordered
category variables. I have found the tabodds command in Stata. But how to
do it in R?
Thanks
*Yao Zhu*
*Department of UrologyFudan University Shanghai Cancer CenterShanghai,
China*
[[alternative HTML
Thank you very much for the reference about methodology.
I will try the GAMLESS package.
*Yao Zhu*
*Department of Urology
Fudan University Shanghai Cancer Center
Shanghai, China*
2013/2/11 David Winsemius dwinsem...@comcast.net
On Feb 10, 2013, at 11:36 PM, zhu yao wrote:
Dear R-users
I
Dear R users
Function improveProb in the rms library calculate NRI and IDI for
predictions of binary outcome.
Do anyone extent its use in survival data?
Many thanks.
*Yao Zhu*
*Department of Urology
Fudan University Shanghai Cancer Center
Shanghai, China*
[[alternative HTML version
Dear R users:
In Prof. Harrell's library rms, calibrate.rms plot the Bias-corrected
Probability and Apparent Probability.
The latter one can be retrieved from class calibrate.default. But how to
retrieve the former one.
BW
*Yao Zhu*
*Department of Urology
Fudan University Shanghai Cancer Center
Thanks Frank
I got the predicted probability.
But can I get the bootstrap corrected probability for individual subject.
for instance, I can get predicted probability from predict(fit,
type=fitted). Is there similar one to retrieve the bootstrap corrected
probability for individual subject.
Nomogram is user-friendly, but the equation is also acceptable. It should be
kept in mind that the process of model development really counts.
BTW: You can calculate C-index (AUC) in SPSS. Calibration plot can also be
plotted (may be manually) from the result of SPSS.
*Yao Zhu*
*Department of
Dear R users:
I want to externally validate a model with val.surv.
Can I use only calculated survival (at 1 year) and actual survival?
Or I needed the survival function and actual survival.
Thanks
*Yao Zhu*
*Department of Urology
Fudan University Shanghai Cancer Center
Shanghai, China*
error in pre[sam[[j]], i] - predict(fit, data = dat[sam[[j]], ]) :
*
Yao Zhu*
*Department of Urology
Fudan University Shanghai Cancer Center
Shanghai, China*
2011/6/20 Jim Holtman jholt...@gmail.com
what was the error?
Sent from my iPad
On Jun 20, 2011, at 1:34, zhu yao mailzhu
Dear R users:
Recently, I tried to write a program to calculate cross-validated predicted
value.
My sources are as follows. However, the R reported an error.
Could you please check the sources? Thanks.
set.seed(100)
x-rnorm(100)
y-sample(rep(0:1,50),replace=T)
dat-data.frame(x,y)
library(rms)
Dear UseRs:
Recently, I have read an article regarding the association between age and
lymph node metastases.
http://jco.ascopubs.org/content/27/18/2931.long
In statistical analysis, the authors stated Because a nonlinear
relationship between age and lymph node involvement was expected based on
Dear R users:
I tried to use val.surv to give an internal validation of survival
prediction model.
I used the sample sources.
# Generate failure times from an exponential distribution
set.seed(123) # so can reproduce results
n - 1000
age - 50 + 12*rnorm(n)
sex -
Dear R users:
Recently, I learn to use penalized logistic regression. Two packages
(penalized and glmnet) have the function of lasso.
So I write these code. However, I got different results of coef. Can someone
kindly explain.
# lasso using penalized
library(penalized)
Hi, everyone. I know it may be a basic statistical question. But I can't
find a good answer.
I have a question raised by one of the reviewers.
Factor A expression was strongly correlated with B expression (chi-square)
in this series. Prior reports by the same authors showed that B expression
Dear all:
I have used the cph function in the rms package.
log10 was used to transform the variables, as follows:
fit-cph(pfsurv~log10(x1)+log10(x2),x=T,y=T,surv=T)
after I run the nomogram function.
I found variable limits and transformations are such that an infinite axis
value has resulted.
Dear useRs:
I use pROC package to compute the bootstrap C.I. of AUC.
The command was as follows:
roc1-roc(all$D,all$pre,ci=TRUE,boot.n=200)
However, the result was:
Area under the curve: 0.5903
95% CI: 0.479-0.7016 (DeLong)
Why the C.I. was computed by the Delong Method?
Yao Zhu
Department
Dear R users:
In stat, there is a stpower function for power analysis and sample-size
determination in survival
models. Is there a counterpart in R?
Thanks
Yao Zhu
Department of Urology
Fudan University Shanghai Cancer Center
Shanghai, China
[[alternative HTML version deleted]]
THX
Yao Zhu
Department of Urology
Fudan University Shanghai Cancer Center
Shanghai, China
2010/6/4 Frank E Harrell Jr f.harr...@vanderbilt.edu
On 06/03/2010 11:32 AM, Joris Meys wrote:
You're right, it is the same. using I() won't work for the same reason
sqrt
don't, so :
x2- x^2
Dear r users
I have a question in coding continuous variables in logistic regression.
When rcs is used in transforming variables, sometime it gives implausible
associations with the outcome although the model x2 is high.
So what's your tips and tricks in coding continuous variables.
P.S. How
Totally agreed.
Nomogram (or rank table, score table) is just a nice presentation of the
model. The development and evaluation of the model is the one that matters.
In order to develop a good model, you have to know how to manipulate the
data, how to make your model better and suitable. These work
Hi, everyone:
I ask for help about translating a stata program into R.
The program perform cross validation as it stated.
#1. Randomly divide the data set into 10 sets of equal size, ensuring equal
numbers of events in each set
#2. Fit the model leaving out the 1st set
#3. Apply the fitted
Center
Shanghai, China
2010/1/21 zhu yao mailzhu...@gmail.com
Hi, everyone:
I ask for help about translating a stata program into R.
The program perform cross validation as it stated.
#1. Randomly divide the data set into 10 sets of equal size, ensuring equal
numbers of events in each set
After upgrading R to 2.9.2, I can't use the anova() fuction.
It says could not find function Varcov .
What's wrong with my computer? Help needed, thanks!
Yao Zhu
Department of Urology
Fudan University Shanghai Cancer Center
No. 270 Dongan Road, Shanghai, China
[[alternative HTML version
/12 zhu yao mailzhu...@gmail.com:
After upgrading R to 2.9.2, I can't use the anova() fuction.
It says could not find function Varcov .
What's wrong with my computer? Help needed, thanks!
Yao Zhu
Department of Urology
Fudan University Shanghai Cancer Center
No. 270 Dongan Road
On Aug 1, 2009, at 8:53 PM, zhu yao wrote:
Thx for your reply.
In this example, age was transformed with rcs. So the output was different
between f and summary(f).
If I need to publicate the results, how do I explation the hazard ratio of
age?
2009/8/1 David Winsemius dwinsem
Thx for your reply.
In this example, age was transformed with rcs. So the output was different
between f and summary(f).
If I need to publicate the results, how do I explation the hazard ratio of
age?
2009/8/1 David Winsemius dwinsem...@comcast.net
On Jul 31, 2009, at 11:24 PM, zhu yao wrote
Could someone explain the summary(cph.object)?
The example is in the help file of cph.
n - 1000
set.seed(731)
age - 50 + 12*rnorm(n)
label(age) - Age
sex - factor(sample(c('Male','Female'), n,
rep=TRUE, prob=c(.6, .4)))
cens - 15*runif(n)
h -
/a9/c8/8b/c01aad248a0b4ae6ef677600614bd4fa.jpg
2009/7/26 Frank E Harrell Jr f.harr...@vanderbilt.edu
zhu yao wrote:
Dear experts:
I am a newbie to R. Recently, I try to make prediction models with R and
the
Design library.
I have read Prof. Harrell's excellent book. But I did not quite
Dear experts:
I am a newbie to R. Recently, I try to make prediction models with R and the
Design library.
I have read Prof. Harrell's excellent book. But I did not quite understand.
I have two problems about the validation and calibration of prediction
models:
1. Can someone explain the results
31 matches
Mail list logo