Re: [R] c-statiscs 95% CI for cox regression model

2010-07-24 Thread Frank E Harrell Jr
example at the bottom) Frank -- Frank E Harrell Jr Professor and ChairmanSchool of Medicine Department of Biostatistics Vanderbilt University __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-h

Re: [R] UseR! 2010 - my impressions

2010-07-24 Thread Frank E Harrell Jr
e terrific (thanks to the program committee and the speakers) and Kate Mullen and her team did an extraordinary job in putting the conference together and running it. I am proud to have been a part of it. Thank you all! Frank -- Frank E Harrell Jr Professor and ChairmanSchool o

Re: [R] Problem with offset (Glm or glmD) in Design library

2010-07-15 Thread Frank E Harrell Jr
___ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- Frank E Harrell Jr Professor and ChairmanSc

Re: [R] R's Data Dredging Philosophy for Distribution Fitting

2010-07-14 Thread Frank E Harrell Jr
(as in checking goodness of fit of various parametric distributions), your final estimators will have the variance of empirical estimators. Frank -- Frank E Harrell Jr Professor and ChairmanSchool of Medicine Department of Biostatistics Vanderbilt University

Re: [R] SAS Proc summary/means as a R function

2010-07-13 Thread Frank E Harrell Jr
on; some perl code perl off; also sas on; some SAS code sas off; The purpose of parmbuff is to turn off of Rs scanning and resolution of function arguments and just provide the bare text between '(' and ')' in the function call. This is a very powerful construct

Re: [R] Function similar to combine.levels in Hmisc package

2010-07-09 Thread Frank E Harrell Jr
(>|t|) value using the linear model, then deleting the non-significant levels. Any other suggestions? Thanks, Saeed That is not a valid statistical procedure. You will not have the correct d.f. in the final F test. Frank -- Frank E Harrell Jr Professor and ChairmanSchool of Medic

Re: [R] how to plot two histograms overlapped in the same plane coordinate

2010-07-09 Thread Frank E Harrell Jr
www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide com

Re: [R] Visualization of coefficients

2010-07-02 Thread Frank E Harrell Jr
//asrr.r-forge.r-project.org/rghuang.html -- Frank E Harrell Jr Professor and ChairmanSchool of Medicine Department of Biostatistics Vanderbilt University __ R-help@r-project.org mailing list https://stat.ethz.ch/ma

Re: [R] rms::ols & I(.) in formulas

2010-07-02 Thread Frank E Harrell Jr
contained, reproducible code. -- Frank E Harrell Jr Professor and ChairmanSchool of Medicine Department of Biostatistics Vanderbilt University __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-

Re: [R] ROC curve in R

2010-07-01 Thread Frank E Harrell Jr
do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- Frank E Harrell Jr Professor and ChairmanSchool of Medicine Department of Biostatistics V

Re: [R] Logistic regression with multiple imputation

2010-06-30 Thread Frank E Harrell Jr
R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- Frank E Harr

Re: [R] Wilcoxon signed rank test and its requirements

2010-06-25 Thread Frank E Harrell Jr
You still are stating the effect of the central limit theorem incorrectly. Please see my previous note. Frank On 06/25/2010 10:27 AM, Joris Meys wrote: > 2010/6/25 Frank E Harrell Jr: >> The central limit theorem doesn't help. It just addresses type I error, >> not power

Re: [R] Wilcoxon signed rank test and its requirements

2010-06-25 Thread Frank E Harrell Jr
gt; >> i would like to test, whether the mean of the sample differ significantly >> from the population mean. >> > According to probability theory, this will be in 5% of the cases if > you repeat your sampling infinitly. But as David asked: why on earth > do y

Re: [R] Wilcoxon signed rank test and its requirements

2010-06-24 Thread Frank E Harrell Jr
e indicator (0/1) of xi + xj > 0. So WSR tests H0:p=0.5 where p = the probability that the average of a randomly chosen pair of values is positive. [If there are ties this probably needs to be worded as P[xi + xj > 0] = P[xi + xj < 0], i neq j. Frank -- Frank E Harrell Jr Profess

Re: [R] glm

2010-06-23 Thread Frank E Harrell Jr
posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- Frank E Harrell Jr Professor and ChairmanSchool of Medicine Department of Biostatistics Vanderbilt University ___

Re: [R] Popularity of R, SAS, SPSS, Stata...

2010-06-21 Thread Frank E Harrell Jr
y of SAS serving hundreds of users. Cheers, Bob Ted. E-Mail: (Ted Harding) Fax-to-email: +44 (0)870 094 0861 Date: 20-Jun-10 Time: 20:41:43 ---------- XFMail

Re: [R] Extracting P-values from the lrm function in the rms library

2010-06-19 Thread Frank E Harrell Jr
special case where each variable has only one degree of freedom. Just do a <- anova(mod.poly3) and treat the result as matrix. You'll get the needed multiple degree of freedom test and P-value. Frank -- Frank E Harrell Jr Professor and ChairmanSchool of Medicine

Re: [R] Fitting a polynomial using lrm from the Design library

2010-06-18 Thread Frank E Harrell Jr
y ideal result. That would be log(odds) = 0 or OR=1. I wonder how many other errors I committed? Best to convert to the rms package - see http://biostat.mc.vanderbilt.edu/Rrms for differences with Design. If using ordinary polynomials, use e.g. mod.poly3 <- lrm(trait ~ pol(PC1, 3), dat

Re: [R] Latex problem in Hmisc (3.8-1) and Mac Os X with R 2.11.1

2010-06-18 Thread Frank E Harrell Jr
g as the ctable=T was included), but without it latex (s6) ##I do get a nicely formated table, but again the numbers are all wrong... Also ##latex(s6, long=TRUE, prmsd=TRUE, msdsize="smaller",middle.bold=TRUE) ##makes no difference from latex(s6) alone with regards

Re: [R] Is there a non-parametric repeated-measures Anova in R ?

2010-06-17 Thread Frank E Harrell Jr
he rank of Y and reduces to the regular nonparametric tests as special cases. Frank -- Frank E Harrell Jr Professor and ChairmanSchool of Medicine Department of Biostatistics Vanderbilt University __ R-help@r

Re: [R] R licensing query

2010-06-17 Thread Frank E Harrell Jr
ter system here. My only other option for data anlaysis is Excel, we have no money for S-plus or any other stats programme. Can anyone suggest anything or send me a suitable email? Many thanks, Georgina -- Frank E Harrell Jr Professor and ChairmanSchool of Medicine

Re: [R] Is there a non-parametric repeated-measures Anova in R ?

2010-06-16 Thread Frank E Harrell Jr
do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- Frank E Harrell Jr Professor and ChairmanSchool of Medicine Department of Biostatisti

Re: [R] ols function in rms package

2010-06-08 Thread Frank E Harrell Jr
has already been shown to be poor in many cases. You might run the following in parallel: full model fits and penalized least squares using penalties selected by AIC (using special arguments to ols along with the pentrace function). Frank Regards, Mark -- Frank E Harrel

Re: [R] ols function in rms package

2010-06-07 Thread Frank E Harrell Jr
If you indeed need variable selection see if backwards stepdown works for you. It is built-in to rms bootstrap validation and calibration functions. Frank -- Frank E Harrell Jr Professor and ChairmanSchool of Medicine Department of Biostatistics Vanderbilt Unive

Re: [R] Continous variables with implausible transformation?

2010-06-03 Thread Frank E Harrell Jr
se lrm(Y ~ pol(x, 2)) Frank -- -- Joris Meys Statistical Consultant Ghent University Faculty of Bioscience Engineering Department of Applied mathematics, biometrics and process control Coupure Links 653 B-9000 Gent -- Frank E Harrell Jr Professor and Chairm

Re: [R] ICD9 codes

2010-05-29 Thread Frank E Harrell Jr
g held by the moderator. So I assumed that the question was never posted and I reposted with different subject lines just to make sure that it gets posted. I sincerely apologise for the inconvenience caused. Regards, Vishwanath On Sat, May 29, 2010 at 4:10 AM, Frank E Harrell Jr wrote: Your note

Re: [R] latex.rms and models fit with Gls

2010-05-28 Thread Frank E Harrell Jr
On 05/28/2010 05:31 PM, Dylan Beaudette wrote: On Friday 28 May 2010, Frank E Harrell Jr wrote: On 05/28/2010 03:49 PM, Dylan Beaudette wrote: Hi, I have fit a model using the rms package with the Gls() function. Is there a way to get the model estimates, std errors, and p-values (i.e. what

Re: [R] ICD9 codes

2010-05-28 Thread Frank E Harrell Jr
work with ICD9 codes. Is anyone aware of any R method that deals with ICD9 codes verification and manipulation. Thanks Vishwanath -- Frank E Harrell Jr Professor and ChairmanSchool of Medicine Department of Biostatistics Vander

Re: [R] latex.rms and models fit with GLS

2010-05-28 Thread Frank E Harrell Jr
simple way to get a table of estimated coeficients without hand-making a table in a text editor for inclusion within a LATEX document. Thanks! -- Frank E Harrell Jr Professor and ChairmanSchool of Medicine Department of Biostatistics Va

Re: [R] median test

2010-05-28 Thread Frank E Harrell Jr
__ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- Frank E Harrell Jr Professor

Re: [R] median test

2010-05-27 Thread Frank E Harrell Jr
p://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- Frank E Harrell Jr Professor and ChairmanSchool of Medicine Department of Biostatistics Vanderbilt University ___

Re: [R] Problem with plotting survival predictions from cph model

2010-05-26 Thread Frank E Harrell Jr
n.enter' not found" Actually, using 'survest(f, time=3)' has the same result. Has anybody encountered this kind of error? Is there a workaround? Best regards, Please provide a tiny self-contained reproducible example, e.g., using simulated data. Frank -- Frank E Harrel

Re: [R] validation logistic regression

2010-05-26 Thread Frank E Harrell Jr
ble code. __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducib

Re: [R] validation logistic regression

2010-05-26 Thread Frank E Harrell Jr
ling list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- Frank E Harrell Jr Professor and ChairmanSchool of Medicine

Re: [R] Relative Risk/Hazard Ratio plots for continuous variables

2010-05-25 Thread Frank E Harrell Jr
native HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.

Re: [R] ROC curve

2010-05-24 Thread Frank E Harrell Jr
cts (which it almost never is). Frank -- Frank E Harrell Jr Professor and ChairmanSchool of Medicine Department of Biostatistics Vanderbilt University __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo

Re: [R] Re : Re : Re : Nomogram with multiple interactions (package rms)

2010-05-23 Thread Frank E Harrell Jr
variable to a constant in the newdata argument to predict, and not using that variable to predict the linear predictor. Then you can make a nomogram from the ols model. Frank - Message d'origine De : Frank E Harrell Jr À : Marc Carpentier Cc : r-help-request Mailing List

Re: [R] Regression with sparse matricies

2010-05-22 Thread Frank E Harrell Jr
with the source package, the see what is needed in lrm to use it. Frank -- Frank E Harrell Jr Professor and ChairmanSchool of Medicine Department of Biostatistics Vanderbilt University __ R-help@r-project.org mai

Re: [R] Re : Re : Nomogram with multiple interactions (package rms)

2010-05-20 Thread Frank E Harrell Jr
previous mail) I didn't see any example of this "adjustement" of nomogram to 'male' or 'female'... I hope I gave a clearer explanation and I'm not wrong about this unmentioned case. Marc - Message d'origine De : Frank E Harrell Jr À : Marc

Re: [R] Re : Nomogram with multiple interactions (package rms)

2010-05-19 Thread Frank E Harrell Jr
continuous predictors have two axes each, with male and female in close proximity. Or maybe I'm just missing your point. Frank - Message d'origine De : Frank E Harrell Jr À : Marc Carpentier; r-help-request Mailing List Envoyé le : Mer 19 mai 2010, 22h 28min 51s Objet :

Re: [R] Nomogram with multiple interactions (package rms)

2010-05-19 Thread Frank E Harrell Jr
er one But nomogram() still wants me to define interact=list(...) Thanks for any advice you might have (with adj.to or any alternative...) Marc Carpentier -- Frank E Harrell Jr Professor and ChairmanSchool of Medicine Department of Biostatistics Vanderbi

Re: [R] Generating all possible models from full model

2010-05-19 Thread Frank E Harrell Jr
On 05/19/2010 01:39 PM, Ben Bolker wrote: Frank E Harrell Jr Vanderbilt.Edu> writes: Please read the large number of notes in the e-mail archive about the invalidity of such modeling procedures. Frank I'm curious: do you have an objection to multi-model averaging a la

Re: [R] Generating all possible models from full model

2010-05-19 Thread Frank E Harrell Jr
month+coslunar+sinlunar+plankton, data=mydata)) m234567<-glm.convert(glm.nb(mantas~year+cosmonth+sinmonth+coslunar+sinlunar+plankton, data=mydata)) #Seven terms - 1 model m1234567<-glm.convert(glm.nb(mantas~site*year+cosmonth+sinmonth+coslunar+sinlunar+plankton, data=myda

Re: [R] Box-Cox Transformation: Drastic differences when varying added constants

2010-05-18 Thread Frank E Harrell Jr
sform-both-sides nonparametric regression approaches. Frank -- Frank E Harrell Jr Professor and ChairmanSchool of Medicine Department of Biostatistics Vanderbilt University __ R-help@r-project.org mailing list

Re: [R] Getting dates in an SPSS file in right format.

2010-05-18 Thread Frank E Harrell Jr
93 13071 The spss.get function in the Hmisc package handles SPSS dates. Frank -- Frank E Harrell Jr Professor and ChairmanSchool of Medicine Department of Biostatistics Vanderbilt University __ R-help@r-project.o

Re: [R] Simple question on binning data

2010-05-14 Thread Frank E Harrell Jr
practice in spectral analysis and ANPOW. ... Bert is correct. Binning is seldom needed and usually distorts. It is the statistical equivalent of a former governor from Alaska. Frank ... Sincerely, KeithC. My experience in time series is limited so I'll defer to others. Frank -- Frank E Ha

Re: [R] Cubic B-spline, how to numerically integrate?

2010-05-14 Thread Frank E Harrell Jr
lines. Derivatives and antiderivatives are trivial to write down. The Hmisc package has rcspline.eval and rcspline.restate functions to help, the latter having an option to express the antiderivative in text form. Frank -- Frank E Harrell Jr Professor and ChairmanSchool of Med

Re: [R] read table for Fisher Exact

2010-05-13 Thread Frank E Harrell Jr
id not approach 0.05 even for sample sizes over 100.'';conservativeness of ``exact'' methods;see \emph{Stat in Med} \textbf{28}:173-179, 2009 for a criticism which was unanswered} } - Original Message From: Frank E Harrell Jr To: r-help@r-project.org Sent: T

Re: [R] Simple question on binning data

2010-05-13 Thread Frank E Harrell Jr
from that continuous variable, then ?cut can help you. george5000 wrote: Hello everyone, I have a data set, and I need to bin my data using a bin width of say g(n). Would anyone be willing to tell me how to do this in R? Thanks -- Frank E Harrell Jr Professor and Chairman

Re: [R] read table for Fisher Exact

2010-05-13 Thread Frank E Harrell Jr
his case, Fisher's exact test has a good chance of being less accurate than an approximate Pearson chi-square test. -- Frank E Harrell Jr Professor and ChairmanSchool of Medicine Department of Biostatistics Vanderbilt University __

Re: [R] a question about "latex" in Hmisc

2010-05-12 Thread Frank E Harrell Jr
ile for your table you can continue to use your original method, e.g., <<>>= tmp<- latex(x, file="x.tex") @ \include{x.tex} (not sure what your objection to this was in the first place). -Ista -- Frank E Harrell Jr Professor and ChairmanSchool of Medicin

Re: [R] P values

2010-05-11 Thread Frank E Harrell Jr
thz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- Frank E Harrell Jr Professor and ChairmanSchool of Medicine Depart

Re: [R] a matter of etiquette

2010-05-11 Thread Frank E Harrell Jr
what else? I only rule out writing (again) to the maintainers of the package. Adelchi Azzalini -- Adelchi Azzalini Dipart.Scienze Statistiche, Università di Padova, Italia tel. +39 049 8274147, http://azzalini.stat.unipd.it/ -- Frank E Harrell Jr Professor and ChairmanSchool of

Re: [R] How to estimate whether overfitting?

2010-05-10 Thread Frank E Harrell Jr
or 50-fold repeats of 10-fold cross-validation. Among other places these are implemented in my rms package. Frank -- Frank E Harrell Jr Professor and ChairmanSchool of Medicine Department of Biostatistics Vanderbilt University ___

Re: [R] How to estimate whether overfitting?

2010-05-09 Thread Frank E Harrell Jr
suggestion to improve model performance? and is the picture bad? 5. the picture and data below. thank you! http://n4.nabble.com/file/n2164417/scatter.jpg scatter.jpg http://n4.nabble.com/file/n2164417/pkc-svm.txt pkc-svm.txt -- -- Frank E Harrell Jr Professor and ChairmanSchool of Medicine

Re: [R] help on hmisc

2010-05-08 Thread Frank E Harrell Jr
neering Department of Applied mathematics, biometrics and process control Coupure Links 653 B-9000 Gent tel : +32 9 264 59 87 joris.m...@ugent.be --- Disclaimer : http://helpdesk.ugent.be/e-maildisclaimer.php [[alternative HTML version deleted]]

Re: [R] What is the best way to have "R" output tables in an MS

2010-05-07 Thread Frank E Harrell Jr
ad-to-head time-efficiency test many years ago of WYSIWYG word processing and markup languages by secretaries. The markup language approach won easily. This assumes that people don't mind learning things that take more than a day to learn. Frank --- On Thu, 5/6/10, Frank E Harrell Jr

Re: [R] sample size for survival curves

2010-05-06 Thread Frank E Harrell Jr
any suggestions. John As I recall, the survival probability used in Freedman is not at some arbitrary time of your choosing, but rather at the average length of follow-up time anticipated in the study. Kevin -- Frank E Harrell Jr Professor and ChairmanSchool of Medicine

Re: [R] What is the best way to have "R" output tables in an MS

2010-05-06 Thread Frank E Harrell Jr
On 05/06/2010 07:28 PM, (Ted Harding) wrote: On 06-May-10 23:44:50, Frank E Harrell Jr wrote: Ted I can't resist offering my $.02, which is that I'm puzzled why LaTeX, being free, flexible, and powerful, is used only by millions of people and not tens of millions. Frank I think, F

Re: [R] What is the best way to have "R" output tables in an MS

2010-05-06 Thread Frank E Harrell Jr
Ted I can't resist offering my $.02, which is that I'm puzzled why LaTeX, being free, flexible, and powerful, is used only by millions of people and not tens of millions. Frank On 05/06/2010 03:07 PM, (Ted Harding) wrote: Replying to Chris's latest message for the sake of preserving the thre

Re: [R] Error messages with psm and not cph in Hmisc

2010-05-05 Thread Frank E Harrell Jr
ld and Adolescent Psychiatry [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.

Re: [R] Latex and Stangle()

2010-05-05 Thread Frank E Harrell Jr
e Londrina Fone: 3371-4346 __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.

Re: [R] Re : Re : aregImpute (Hmisc package) : error in matxv(X, xcof)...

2010-05-05 Thread Frank E Harrell Jr
an/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- Frank E Harrell Jr Professor and ChairmanSchool of Medicine Department of Biostatistics Vanderbilt Uni

Re: [R] Visualizing binary response data?

2010-05-04 Thread Frank E Harrell Jr
help would be greatly appreciated, thanks, Kim -- Frank E Harrell Jr Professor and ChairmanSchool of Medicine Department of Biostatistics Vanderbilt University __ R-help@r-project.org mailing list https://stat.ethz.ch/

Re: [R] Need help on having multiple distributions in one graph

2010-05-04 Thread Frank E Harrell Jr
ich is really quite simple in applications such as Stata. Thanks very much for the assistance: Joseph Hilbe hi...@asu.edu or jhi...@aol.com -- Frank E Harrell Jr Professor and ChairmanSchool of Medicine Department of Biostatistics Vanderbilt University ___

Re: [R] aregImpute (Hmisc package) : error in matxv(X, xcof)...

2010-05-04 Thread Frank E Harrell Jr
if these messages reflect a specific problem in my dataset ? And if the number mentioned might give me a hint on which column to look at (and maybe transform or ignore for the imputation) ? Thanks for any advice you might have. Marc [[alternative HTML version deleted]] -- Frank E Harrell Jr

Re: [R] What is the best way to have "R" output tables in an MS Word format?

2010-05-03 Thread Frank E Harrell Jr
in the core is a bit incongruent with having even provided tabs for matrices and tables? I'll pick up more in response to Max Kuhn's message. Very best, Chris -- Frank E Harrell Jr Professor and ChairmanSchool of Medicine Departmen

Re: [R] What is the best way to have "R" output tables in an MS Word format?

2010-04-30 Thread Frank E Harrell Jr
the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- Frank E Harrell Jr Professor and ChairmanSchool of Medicine Department of Biostatistics Vanderbilt University __

Re: [R] What is the best way to have "R" output tables in an MS Word format?

2010-04-30 Thread Frank E Harrell Jr
project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. See http://biostat.mc.vanderbilt.edu/SweaveConvert -- Frank E Harrell Jr Professor

Re: [R] Robust ANOVA functions in R?

2010-04-28 Thread Frank E Harrell Jr
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- Frank E Harrell Jr Professor and ChairmanSchool of Medicine Department of Biostati

Re: [R] Practical work with logistic regression

2010-04-22 Thread Frank E Harrell Jr
_ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- Frank E Harrell Jr Professor and ChairmanSchool of Medicine

Re: [R] Results from clogit out of range?

2010-04-21 Thread Frank E Harrell Jr
01-04_1 0 0.5260032 -2.977887 -0.02393871 By default (which is what you have implicitly chosen) you are requesting "lp" = linear predictors rather than "risk". Thomas Lumley Assoc. Professor, Biostatistics tlum...@u.washington.eduUniversi

Re: [R] Help: coxph() in {survival} package

2010-04-19 Thread Frank E Harrell Jr
he multiple models and to get bootstrap confidence intervals for the ranks. I provided some code for this a couple of weeks ago. Frank -- Frank E Harrell Jr Professor and ChairmanSchool of Medicine Department of Biostat

Re: [R] Serverless databases in R

2010-04-19 Thread Frank E Harrell Jr
x27;t it odd that the open-source R community has developed functions for reading in proprietary SAS and SPSS format files, but (AFAIK) the commercial sector doesn't seem to support reading data from open-sourced and open-specced R .Rdata files? Barry Hi Barry, Stat Transfer can read and write

Re: [R] problem with FUN in Hmisc::summarize

2010-04-16 Thread Frank E Harrell Jr
formula functions, or use tapply using a vector of possible subscripts (1:n) as the first argument; then you can use the subscripts selected to address multiple variables. Frank -- Frank E Harrell Jr Professor and ChairmanSchool of Medicine Department of B

Re: [R] Regression w/ interactions

2010-04-15 Thread Frank E Harrell Jr
r providing the right answer. Frank On Thu, Apr 15, 2010 at 8:26 AM, Frank E Harrell Jr mailto:f.harr...@vanderbilt.edu>> wrote: Michael Dykes wrote: I have a project due in my Linear Regression class re: regression on a data set & my professor gave us

Re: [R] Regression w/ interactions

2010-04-15 Thread Frank E Harrell Jr
th low signal to noise ratios. Frank -- Frank E Harrell Jr Professor and ChairmanSchool of Medicine Department of Biostatistics Vanderbilt University __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/lis

Re: [R] Brier's score for bootstrap sample (coxph)

2010-04-10 Thread Frank E Harrell Jr
ible but will be noisy. You did not point to a function or package that claims to be able to compute a Brier score with censored data. Frank -- Frank E Harrell Jr Professor and ChairmanSchool of Medicine Department of Biostatistics Vanderbilt Un

Re: [R] How to get the penalty matrix for natural cubic spline?

2010-04-09 Thread Frank E Harrell Jr
pline. Thanks a lot! Lee In usual practice the natural cubic spline does not use penalization. Frank -- Frank E Harrell Jr Professor and ChairmanSchool of Medicine Department of Biostatistics Vanderbilt University __

Re: [R] Overfitting/Calibration plots (Statistics question)

2010-04-08 Thread Frank E Harrell Jr
t;- coef(lsfit(predict(lm2, d[101:200, ]), d$y[101:200]))[2] } mean(slope1) mean(slope2) I get > [1] 0.8873878 > [1] 0.9603158 Frank __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting

Re: [R] C-index and Cox model

2010-04-08 Thread Frank E Harrell Jr
C-index statistic to measure the predictive power, is it a time-dependent value (i.e. do I need to calculate it for each time period?) or we can calculate it as a single value for the whole model ignoring the time? Thank you so much. Bessy install.packages('Hmisc') ?rcorr.cens

Re: [R] glmpath in R

2010-04-06 Thread Frank E Harrell Jr
d these methods. Cheers, Claire __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code

Re: [R] SAS and R on multiple operating systems

2010-04-06 Thread Frank E Harrell Jr
bg="transparent", width=700, height=500) example(forest) dev.off() Also I have seen 5,000 page listings in SAS. -- Frank E Harrell Jr Professor and ChairmanSch

Re: [R] sample size > 20K? Was: fitness of regression tree: how to measure???

2010-04-01 Thread Frank E Harrell Jr
ostatistics -Original Message- From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] On Behalf Of Frank E Harrell Jr Sent: Thursday, April 01, 2010 5:02 AM To: vibha patel Cc: r-help@r-project.org Subject: Re: [R] fitness of regression tree: how to measure??? v

Re: [R] fitness of regression tree: how to measure???

2010-04-01 Thread Frank E Harrell Jr
data and that the form of the tree will not replicate in future datasets. Frank -- Frank E Harrell Jr Professor and ChairmanSchool of Medicine Department of Biostatistics Vanderbilt University __ R-help@r-projec

Re: [R] Problem comparing hazard ratios

2010-03-31 Thread Frank E Harrell Jr
th(rownames(x))) as.factor(rownames(x)) else as.factor(1:nrow(x)) cand <- reorder.factor(cand, x[,1]) Dotplot(cand ~ Cbind(x), pch=16, xlab='Rank', ylab='Candidate') } require(rms) n <- 100 age <- rnorm(n, 50, 10) sex <- sample(c('female',&#x

Re: [R] Problem comparing hazard ratios

2010-03-31 Thread Frank E Harrell Jr
-boun...@r-project.org] On Behalf Of Frank E Harrell Jr Sent: Tuesday, March 30, 2010 3:57 PM To: Michal Figurski Cc: r-help@r-project.org Subject: Re: [R] Problem comparing hazard ratios Michal Figurski wrote: Dear R-Helpers, I am a novice in survival analysis. I have the following code: for (i in 3

Re: [R] Problem comparing hazard ratios

2010-03-30 Thread Frank E Harrell Jr
likelihood ratio chi-square statistics of the competing biomarkers. Frank -- Frank E Harrell Jr Professor and ChairmanSchool of Medicine Department of Biostatistics Vanderbilt University __ R-help@r-project.org mailing list

Re: [R] Paik, et al., NEJM, 2004, Fig. 4, rate of event at 10 years as a function of covariate

2010-03-30 Thread Frank E Harrell Jr
h(Surv(rtime, event) ~ rcs(covariate,4) + sex + ..., x=TRUE, y=TRUE) # restricted cubic spline with 4 knots plot(Predict(f, covariate, sex, time=10)) # separate curves for male and female; omit sex to make one curve; add age=50 to predict for a 50 year old -- Frank E Harrell Jr Professor and

Re: [R] how to measure accuracy of regression tree?

2010-03-26 Thread Frank E Harrell Jr
provide commented, minimal, self-contained, reproducible code. -- Frank E Harrell Jr Professor and ChairmanSchool of Medicine Department of Biostatistics Vanderbilt University __ R-help@r-project.org mailing li

Re: [R] I have a question on nomograms.

2010-03-25 Thread Frank E Harrell Jr
Gabor Grothendieck wrote: On Thu, Mar 25, 2010 at 10:43 PM, Frank E Harrell Jr wrote: (Ted Harding) wrote: http://www.nomogram.org They call this sort of interface "nomogram" too, and you can have a go at the one they offer for bladder cancer. This is not a graphical nomogram in

Re: [R] I have a question on nomograms.

2010-03-25 Thread Frank E Harrell Jr
lues. So I can't suggest general-purpose nomogram generating software (and I doubt it would work well in many cases). Ted. E-Mail: (Ted Harding) Fax-to-email: +44 (0)870 094 0861 Date: 25-Mar-10 -- Fran

Re: [R] I have a question on nomograms.

2010-03-25 Thread Frank E Harrell Jr
e type of regression modeling used to produce a reliable model that is then displayed in a nomogram. The nomogram is the easy part; it is just a graphical display of a model. It is not the model itself. Frank -- Frank E Harrell Jr Professor and ChairmanSchool of Medicine

Re: [R] ordinal regression

2010-03-24 Thread Frank E Harrell Jr
...@manchester.ac.uk -- Frank E Harrell Jr Professor and ChairmanSchool of Medicine Department of Biostatistics Vanderbilt University __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do re

Re: [R] Find a rectangle of maximal area

2010-03-22 Thread Frank E Harrell Jr
mx1, mx1), c(my1, my1, my2, my2, my1), col=2) __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained,

Re: [R] summary.formula and continuous variables

2010-03-22 Thread Frank E Harrell Jr
a Spearman correlation coefficient. Anyone wanting to work on the code should get the master code from our subversion repository. Frank -- Frank E Harrell Jr Professor and ChairmanSchool of Medicine Department of Biostatistics Vanderbilt University

Re: [R] How good is R at making publication quality tables?

2010-03-17 Thread Frank E Harrell Jr
rfect gift? Give the gift of Flickr! [[alternative HTML version deleted]] -- Frank E Harrell Jr Professor and ChairmanSchool of Medicine Department of Biostatistics Vanderbilt University __ R-help@r-project.or

Re: [R] logistic model diagnostics residuals.lrm {design}, residuals()

2010-03-11 Thread Frank E Harrell Jr
__ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- Frank E Harrell Jr Professor and Chairman

Re: [R] Cox Calibration regression test & double graphs

2010-03-09 Thread Frank E Harrell Jr
questions. B) Calibration plots are very easy for either logistic regression or Cox models when using the calibrate function in either Harrell's rms or Design packages. (Not sure about how well they play with survfit objects, but you ought to be able to apply the same methods.) -- Frank E Ha

Re: [R] Robust SE for lrm object

2010-03-06 Thread Frank E Harrell Jr
ut as I said above I'm not sure whether it would be very useful. Z Excellent posts. I'll just add that the Huber-White sandwhich estimator is obtain in the rms and Design packages by using the robcov function on a fit object. You can also use the bootstrap with bootcov. Frank -- Davi

  1   2   3   4   5   6   7   >