Re: [R] NAMESPACE and imports

2013-04-19 Thread Frank Harrell
), importFrom needs to know what functions you are importing [e.g. importFrom(Hmisc, latex) importFrom(stats, anova)]. -Original Message- From: r-help-bounces@ [mailto: r-help-bounces@ ] On Behalf Of Frank Harrell Sent: Freitag, 19. April 2013 16:26 To: r-help@ Subject: [R

Re: [R] NAMESPACE and imports

2013-04-19 Thread Frank Harrell
Now I see it. S3method() wants two arguments so I need to create multiple S3method() statements for each generic. Frank Frank Harrell wrote Right, I should have said import(Hmisc) instead of importFrom(Hmisc), but that does not explain the error message. Blaser Nello wrote Not sure

Re: [R] Hosmer Lemeshow test

2013-04-23 Thread Frank Harrell
/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 Harrell Department of Biostatistics, Vanderbilt University -- View this message in context: http://r.789695.n4

Re: [R] Stepwise regression for multivariate case in R?

2013-04-26 Thread Frank Harrell
commented, minimal, self-contained, reproducible code. - Frank Harrell Department of Biostatistics, Vanderbilt University -- View this message in context: http://r.789695.n4.nabble.com/Stepwise-regression-for-multivariate-case-in-R-tp4665505p4665526.html Sent from the R help mailing list

Re: [R] Convert continuous variable into discrete variable

2013-04-29 Thread Frank Harrell
, because its assumed discontinuities seldom exist in nature and most relationships are not piecewise flat. Frank levanovd wrote Or even simpler (no need to specify labels): x-runif(100,0,100) u - cut(x, breaks = c(0, 3, 4.5, 6, 8, Inf), labels = FALSE) - Frank Harrell Department

Re: [R] Tiff plot Resolution issues

2013-05-01 Thread Frank Harrell
the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. - Frank Harrell Department of Biostatistics, Vanderbilt University -- View this message in context: http://r.789695.n4.nabble.com/Tiff-plot-Resolution-issues

Re: [R] How do Sweave users collaborate with Word users?

2012-04-09 Thread Frank Harrell
. __ R-help@ 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 Harrell Department of Biostatistics, Vanderbilt University -- View

Re: [R] Kaplan Meier analysis: 95% CI wider in R than in SAS

2012-04-13 Thread Frank Harrell
. - Frank Harrell Department of Biostatistics, Vanderbilt University -- View this message in context: http://r.789695.n4.nabble.com/Kaplan-Meier-analysis-95-CI-wider-in-R-than-in-SAS-tp4554559p4555447.html Sent from the R help mailing list archive at Nabble.com

Re: [R] Kaplan Meier analysis: 95% CI wider in R than in SAS

2012-04-14 Thread Frank Harrell
/posting-guide.html and provide commented, minimal, self-contained, reproducible code. - Frank Harrell Department of Biostatistics, Vanderbilt University -- View this message in context: http://r.789695.n4.nabble.com/Kaplan-Meier-analysis-95-CI-wider-in-R-than-in-SAS-tp4554559p4557695.html

Re: [R] Kaplan Meier analysis: 95% CI wider in R than in SAS

2012-04-16 Thread Frank Harrell
the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. - Frank Harrell Department of Biostatistics, Vanderbilt University -- View this message in context: http://r.789695.n4.nabble.com/Kaplan-Meier-analysis-95-CI

Re: [R] Gls function in rms package

2012-04-18 Thread Frank Harrell
__ R-help@ 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 Harrell Department

Re: [R] Splitting data into test and train (80:20) kepping attributes similar

2012-04-26 Thread Frank Harrell
be for this to happen. Consider resampling instead. Frank - Frank Harrell Department of Biostatistics, Vanderbilt University -- View this message in context: http://r.789695.n4.nabble.com/Splitting-data-into-test-and-train-80-20-kepping-attributes-similar-tp4583928p4589554.html Sent from the R

Re: [R] Gls function in rms package

2012-04-30 Thread Frank Harrell
-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. - Frank Harrell Department of Biostatistics, Vanderbilt University -- View this message in context: http://r.789695.n4.nabble.com/Re-Gls-function-in-rms-package-tp4597397p4598214.html Sent from

Re: [R] question on jitter in plot.Predict in rms

2012-05-01 Thread Frank Harrell
]] __ R-help@ 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 Harrell Department of Biostatistics

[R] DEADLINE FAST APPROACHING for useR! 2012

2012-05-03 Thread Frank Harrell
DEADLINE FAST APPROACHING – 8th Annual International R User Conference useR! 2012, Nashville, Tennessee USA Registration Deadlines: Early Registration: Passed Regular Registration: Mar 1- May 12 Late Registration: May 13 – June 4 On-Site Registration: June 12 – June 15 Please note: Nashville is

[R] May 12 DEADLINE FAST APPROACHING for useR! 2012

2012-05-07 Thread Frank Harrell
8th Annual International R User Conference useR! 2012, Nashville, Tennessee USA === Regular registration rates and most blocks of discounted === hotel rooms are available only 5 more days Registration Deadlines: Early Registration: Passed Regular Registration: Mar 1- May 12 Late Registration:

[R] useR! 2012: Call for Late-Breaking Posters; REGULAR REGISTRATION ENDS 12May

2012-05-11 Thread Frank Harrell
*** Call for Late-breaking Posters *** Abstracts may be submitted for posters presenting recent developments and late-breaking applications of R, on topics as indicated in the earlier call for abstracts: http://biostat.mc.vanderbilt.edu/UseR-2012#Call_for_Abstracts_and_Tutorial

Re: [R] A problem about nomogram

2013-11-12 Thread Frank Harrell
You did not follow the posting guide, did you use pure ascii email, and used illegal characters in your source code. This caused extra work. Once I cleaned up your characters and made the example self-contained, the labels worked fine for me. Here's the cleaned-up code: library(rms) x1 -

[R] [R-pkgs] Hmisc package 3.13-0

2013-11-23 Thread Frank Harrell
A significant update to the Hmisc package is now available on CRAN for all platforms. Hmisc source is now on github at https://github.com/harrelfe/Hmisc and the full change log may be found at https://github.com/harrelfe/Hmisc/commits/master The most important updates are additions of new

[R] [R-pkgs] rms 4.1-0

2013-12-06 Thread Frank Harrell
The rms package has had several updates in version 4.1-0: * Fixed orm.fit to not create penalty matrix if not needed (penalties are not yet implemented anyway) * Added yscale argument to plot.Predict * Added Wald test simulation to orm help file * Added example in help file for

[R] Simple way to define a function to be used in a formula object inside another function

2013-12-15 Thread Frank Harrell
I would like to do this: f - function(formula, data=NULL) { gg - sqrt model.frame(formula, data=data) } x - y - 1:10 f(y ~ gg(x)) Error in eval(expr, envir, enclos) : could not find function gg Is there a simple way to get access to gg from within the model.frame invocation inside f?

Re: [R] Simple way to define a function to be used in a formula object inside another function

2013-12-15 Thread Frank Harrell
Thank you Bill, that worked perfectly. Frank __ 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,

[R] Possible to vary widths and/or heights of lattice panels?

2013-12-21 Thread Frank Harrell
Is it possible to vary the size of the panels in lattice within one page? The examine I have in mind is a 3 row by 2 column display where I vary the y-axis scales in a dot plot and there are only a few levels on the y-axis for one of the rows. I'd like to remove wasted space in that row.

Re: [R] Possible to vary widths and/or heights of lattice panels?

2013-12-22 Thread Frank Harrell
Thanks very much Rich and Duncan. latticeExtra's resizePanels function was a perfect solution. Frank __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide

Re: [R] howto join matrices produced by rcorr()

2014-01-01 Thread Frank Harrell
This is an unstable process. I suggest using the bootstrap to get a confidence interval for the rank of each correlation coefficient among all non-diagonal correlations. - Frank Harrell Department of Biostatistics, Vanderbilt University -- View this message in context: http://r.789695.n4

[R] Regression Modeling Strategies 4-Day Short Course March 2013

2014-01-16 Thread Frank Harrell
My yearly Regression Modeling Strategies course is expanded to 4 days this year to be able relax the pace a bit. Details are below. Questions welcomed. - *RMS Short Course 2014* Frank E. Harrell, Jr., Ph.D., Professor and

[R] [R-pkgs] Major update to Hmisc package available on CRAN

2014-01-23 Thread Frank Harrell
Hmisc has had the following updates, with some of the new functions demonstrated on http://biostat.mc.vanderbilt.edu/HmiscNew . Much of the new work is motivated by the need to replace tables with graphics. Changes in version

Re: [R] Handlig large SAS file in R

2014-01-27 Thread Frank Harrell
. Is there a way that i can see the progress of the read? Or is there another way to read the file with less computing time? I do not have access to SAS, the file was sent to me. Let me know what you guys think KR Hans - Frank Harrell Department of Biostatistics, Vanderbilt University

[R] Regression Modeling Strategies 4-Day Short Course March 2014

2014-02-10 Thread Frank Harrell
My yearly Regression Modeling Strategies course is expanded to 4 days this year to be able relax the pace a bit. Details are below. Questions welcomed. - *RMS Short Course 2014* Frank E. Harrell, Jr., Ph.D., Professor and Chair

Re: [R] survplot invert number at risk labels

2014-07-02 Thread Frank Harrell
Please try hard to create a simple reproducible example, then I'll work on it. [[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

Re: [R] Predictions from coxph or cph objects

2014-07-06 Thread Frank Harrell
When using cph in the rms package there is a function Mean that operates on cph objects to produce an R function for computing the mean or restricted mean life time. Frank __ R-help@r-project.org mailing list

Re: [R] Using subplot (from Hmisc) along with par(mfrow)

2014-07-06 Thread Frank Harrell
Greg I just re-copied the latest subplot and its help file from TeachingDemos to Hmisc for the next release. Thanks for pointing this out. Frank __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the

[R] [R-pkgs] CRAN submission of Hmisc 3.14-5

2014-09-19 Thread Frank Harrell
. Thanks: Benjamin Tyner * DESCRIPTION, NAMESPACE: multiple function changes to work in R-devel See http://biostat.mc.vanderbilt.edu/Hmisc, https://github.com/harrelfe/Hmisc for more information. Frank Harrell Vanderbilt University ___ R-packages

[R] [R-pkgs] CRAN update: rms 4.2-1

2014-09-19 Thread Frank Harrell
: start storing all classes created by survfit.formula * logLik.Gls: added. Makes AIC(Gls object) work. * NAMESPACE: several changes See http://biostat.mc.vanderbilt.edu/rms and https://github.com/harrelfe/rms for more information. Frank Harrell Vanderbilt University

[R] Regression Modeling Strategies 4-Day Short Course March 2015

2015-01-19 Thread Frank Harrell
Subject: Regression Modeling Strategies 4-Day Short Course March 2015 *RMS Short Course 2015* Frank E. Harrell, Jr., Ph.D., Professor and Chair Department of Biostatistics, Vanderbilt University School of Medicine *March 3, 4, 5 6, 2015* With Optional R Workshop March 2 9:00am - 4:00pm Student

[R] Correction: Regression Modeling Strategies 4-Day Short Course March 2015

2015-01-21 Thread Frank Harrell
*RMS Short Course 2015* Frank E. Harrell, Jr., Ph.D., Professor and Chair Department of Biostatistics, Vanderbilt University School of Medicine *March 3, 4, 5 6, 2015* With Optional R Workshop March 2 9:00am - 4:00pm Student Life Center Board of Trust Room Vanderbilt University Nashville

[R] [R-pkgs] Version 3.16-0 of Hmisc now on CRAN

2015-05-04 Thread Frank Harrell
Several updates have been made to the Hmisc package: Changes in version 3.16-0 (2015-04-25) * html.contents.data.frame: corrected html space character to add semicolon * ggplot.summaryP: added size of points according to denominators * colorFacet: new function * labelPlotmath:

[R] Different behavior of model.matrix between R 3.2 and R 3.1.1

2015-06-10 Thread Frank Harrell
For building design matrices for Cox proportional hazards models in the cph function in the rms package I have always used this construct: Terms - terms(formula, specials=c(strat, cluster, strata), data=data) specials - attr(Terms, 'specials') stra- specials$strat Terms.ns - Terms

Re: [R] Different behavior of model.matrix between R 3.2 and R3.1.1

2015-06-14 Thread Frank Harrell
Terry - your example didn't demonstrate the problem because the variable that interacted with strata (zed) was not a factor variable. But I had stated the problem incorrectly. It's not that there are too many strata terms; there are too many non-strata terms when the variable interacting

Re: [R] Different behavior of model.matrix between R 3.2 and R3.1.1

2015-06-15 Thread Frank Harrell
Thank you very much Terry. I'm still puzzled at why this worked a year ago. What changed? I'd very much like to reverse the change by setting an argument somewhere or manipulating the terms object. I echo your sentiments about the general approach. Frank On 06/15/2015 09:05 AM, Therneau,

Re: [R] Nagelkerke Pseudo R-squared

2015-07-18 Thread Frank Harrell
It's implemented in the R rms package's lrm and orm functions. - Frank Harrell Department of Biostatistics, Vanderbilt University -- View this message in context: http://r.789695.n4.nabble.com/Nagelkerke-Pseudo-R-squared-tp4710014p4710031.html Sent from the R help mailing list archive

[R] [R-pkgs] Major updates to Hmisc and rms packages

2015-09-30 Thread Frank Harrell
New versions of Hmisc and rms are available on CRAN. Changes are listed below. The most significant change to Hmisc is the addition of the ffCompress function that creates an optimal ff package object for large data frames by computing the maximum number of bits used by each numeric or

Re: [R] Help with improveProb function in Hmisc in R

2015-10-02 Thread Frank Harrell
Please note that Kirsten is cross-posting to stats.stackexchange.com creating extra work for everyone. -- Frank E Harrell Jr Professor and Chairman School of Medicine Department of *Biostatistics*

Re: [R] Correct notation for functions, packages when using LaTex

2015-12-11 Thread Frank Harrell
Rolf I believe \textsf is the correct font to use for the symbol R but not necessarily for the names of R variables and functions. I'd like more discussion about that. Frank -- Frank E Harrell Jr Professor and

Re: [R] Trouble getting rms::survplot(..., n.risk=TRUE) to behave properly

2016-06-02 Thread Frank Harrell
This happens when you have not strat variables in the model. -- Frank E Harrell Jr Professor and Chairman School of Medicine Department of *Biostatistics* *Vanderbilt University* On Thu, Jun 2, 2016 at 10:55 AM, Steve Lianoglou

Re: [R] Ordinal regression with some categories combined for some data

2016-01-17 Thread Frank Harrell
This does seem to be a good situation for ordinal regression. The R rms package's orm function allows for thousands of categories in Y. But it doesn't handle censoring. This discussion would be better for stats.stackexchange.com Frank --

[R] Recommendation for updating packages such as nlme

2016-02-16 Thread Frank Harrell
I use this function to update my installed R packages: updatePac <- function (checkBuilt = FALSE, ...) update.packages(repos = "http://cran.rstudio.com;, instlib = "/usr/local/lib/R/site-library", checkBuilt = checkBuilt, ...) When I type updatePac() I get: Warning: package 'MASS' in

Re: [R] rms::latex.anova broken?

2017-02-08 Thread Frank Harrell
In recent versions of rms on CRAN there was a non-downward compatible change. To get latex output for summary, anova, and print on fit objects you leave off file="" (because we're usually using knitr anyway) and use options(prType='latex') anova(f) # LaTeX output You can use

[R] [R-pkgs] Massive Update to Hmisc package

2016-11-03 Thread Frank Harrell
Hmisc 4.0-0 is now on CRAN. The package has undergone a massive update. The most user-visable changes are; - support for Rmarkdown html notebooks - advanced html tables using the htmlTable package and summaryM function; can copy and paste into word processors - support for plotly interactive

[R] [R-pkgs] Major Update to rms package: 5.0-0

2016-11-04 Thread Frank Harrell
A major new version of the rms package is now on CRAN. The most user-visible changes are: - interactive plotly graphic methods for model fits. The best example of this is survplot for npsurv (Kaplan-Meier) estimates where the number of risk pop up as you hover over the curves, and you can click

Re: [R] Help understanding why glm and lrm.fit runs with my data, but lrm does not

2017-09-14 Thread Frank Harrell
Fixed 'maxiter' in the help file. Thanks. Please give the original source of that dataset. That dataset is a tiny sample of GUSTO-I and not large enough to fit this model very reliably. A nomogram using the full dataset (not publicly available to my knowledge) is already available in

[R] Regression Modeling Strategies and the rms Package 4-Day Short Course May 2018

2018-03-29 Thread Frank Harrell
*RMS Short Course 2018* Frank E. Harrell, Jr., Ph.D., Professor Department of Biostatistics, Vanderbilt University School of Medicine fharrell.com @f2harrell *May 15-18, 2018* With Optional R Workshop May 14 9:00am - 4:00pm Alumni Hall Vanderbilt University Nashville Tennessee USA See

<    1   2   3   4   5