Re: [R] big data?

2014-08-06 Thread Mike Harwood
The read.table.ffdf function in the ff package can read in delimited files and store them to disk as individual columns. The ffbase package provides additional data management and analytic functionality. I have used these packages on 15 Gb files of 18 million rows and 250 columns. On

[R] Multiple rms summary plots in a single device

2012-05-25 Thread Mike Harwood
I would like to incorporate multiple summary plots from the rms package into a single device and to control the titles, and also to open a new device when I reach a specified number of plots. Currently I am only getting a single plot(summary( graph in the upper left- hand corner of each

[R] glmmPQL and predict

2012-01-09 Thread Mike Harwood
Is the labeling/naming of levels in the documentation for the predict.glmmPQL function backwards? The documentation states Level values increase from outermost to innermost grouping, with level zero corresponding to the population predictions. Taking the sample in the documentation: fit -

[R] Dropping columns from data frame

2012-01-06 Thread Mike Harwood
How does R do it, and should I ever be worried? I always remove columns by index, and it works exactly as I would naively expect - but HOW? The second illustration, which deletes non contiguous columns, represents what I do all the time and have some trepidation about because I don't know the

Re: [R] Dropping columns from data frame

2012-01-06 Thread Mike Harwood
11 k K 2 12 l L On Jan 6, 9:49 am, David Winsemius dwinsem...@comcast.net wrote: On Jan 6, 2012, at 10:00 AM, Mike Harwood wrote: How does R do it, and should I ever be worried?  I always remove columns by index, and it works exactly as I would naively

[R] Fwd: tcplot documentation in evd package

2011-12-13 Thread Mike Harwood
This issue occurs only when both the evd and ismev packages are loaded. Please retract this posting, if possible. Thank you in advance! Mike -- Forwarded message -- From: Mike Harwood harwood...@gmail.com Date: Mon, Dec 12, 2011 at 7:47 PM Subject: tcplot documentation in evd

[R] tcplot documentation in evd package

2011-12-12 Thread Mike Harwood
Hello, and please advise regarding any errors/omissions on my part. However, the documentation for R's tcplot function in the evd package appears to contain an error. I am using evd version 2.2-4 in R 2.14.0 with Windows XP. data(portpirie) mrlplot(portpirie) ## No Error tlim - c(3.6, 4.2)

[R] survexp with large dataframes

2011-09-28 Thread Mike Harwood
Hello, and thank you in advance. I would like to capture the expected survival from a coxph model for subjects in an observational study with recurrent events, but the survexp statement is failing due to memory. I am using R version 2.13.1 (2011-07-08) on Windows XP. My objective is to plot the

[R] predict with eha package

2011-06-02 Thread Mike Harwood
Hello list, and thank you in advance. I'm unable to generate predicted values when specifying newdata using phreg and aftreg models in the eha package, but I do not have the same problem with a proportional hazards model from coxph. Without the newdata argument the predicted values are returned,

[R] predict 'expected' with eha package

2011-05-21 Thread Mike Harwood
I am unsure what is being returned, and what is supposed to be returned, when using 'predict' with type='expected' for an aftreg survival model. The code below first generates a weibull model, then uses predict to create a vector of the linear predictors, then attempts to create the 'expected'

[R] Syntax for iter.max in rms

2011-05-08 Thread Mike Harwood
Hello, I would like to increase the number of iterations for running a Buckley-James regression model in the rms package, but something is apparently syntactically wrong. The following code initially is exactly as it appears in the help page (which runs successfully), then a failure to converge

Re: [R] ID parameter in model

2011-05-04 Thread Mike Harwood
(= 2.2.0), survival, graphics Maintainer: Göran Broström g...@stat.umu.se Packaged: 2011-03-01 14:56:12 UTC; gb Repository: CRAN Date/Publication: 2011-03-01 15:50:52 Built: R 2.13.0; i386-pc-mingw32; 2011-04-15 08:22:36 UTC; windows Mike On Mon, May 2, 2011 at 10:38 AM, Mike Harwood harwood

[R] ID parameter in model

2011-05-02 Thread Mike Harwood
Hello, I am apparently confused about the use of an id parameter for an event history/survival model, and why the EHA documentation for aftreg does not specify one. All assistance and insights are appreciated. Attempting to specifiy an id variable with the documentation example generates an

Re: [R] survexp with weights

2011-04-21 Thread Mike Harwood
system i386, mingw32 status major 2 minor 12.2 year 2011 month 02 day25 svn rev54585 language R version.string R version 2.12.2 (2011-02-25) package ‘survival’ version 2.36-5 On Apr 20, 11:03 am, Mike Harwood harwood

[R] survexp with weights

2011-04-20 Thread Mike Harwood
Hello, I probably have a syntax error in trying to generate an expected survival curve from a weighted cox model, but I can't see it. I used the help sample code to generate a weighted model, with the addition of a weights=albumin argument (I only chose albumin because it had no missing values,

Re: [R] debug biglm response error on bigglm model

2011-01-12 Thread Mike Harwood
Center Intermountain Healthcare greg.s...@imail.org 801.408.8111 -Original Message- From: r-help-boun...@r-project.org [mailto:r-help-boun...@r- project.org] On Behalf Of Mike Harwood Sent: Monday, January 10, 2011 6:29 AM To: r-h...@r-project.org Subject: [R] debug biglm

[R] debug biglm response error on bigglm model

2011-01-10 Thread Mike Harwood
G'morning What does the error message Error in x %*% coef(object) : non- conformable arguments indicate when calculating the response values for newdata with a model from bigglm (in package biglm), and how can I debug it? I am attempting to do Monte Carlo simulations, which may explain the loop

[R] Error in x %*% coef(object) : non-conformable arguments

2011-01-07 Thread Mike Harwood
Hello, and thanks in advance! What does the error message Error in x %*% coef(object) : non- conformable arguments when indicate when predicting values for newdata with a model from bigglm (in package biglm), and how can I debug it? I am attempting to do Monte Carlo simulations, which may

[R] Set axis limits in mixtools plot

2011-01-06 Thread Mike Harwood
Hello, Can the x and y axis limits be specified in a density plot with the mixtools package for a finite mixture model? Uncommenting the xlim2/ ylim2 lines in the plot command below generates 'not a graphical parameter' warnings (and does not change the axis settings), and uncommenting the

[R] Reconcile Random Samples

2010-12-23 Thread Mike Harwood
Is there a way to generate identical random samples using R's runif function and SAS's ranuni function? I have assigned the same seed values in both software packages, but the following results show different results. Thanks! R === set.seed(6) random - runif(10) random [1] 0.6062683

[R] pairs and mfrow

2010-09-27 Thread Mike Harwood
Is there an alternative to par(mfrow=c(2,1)) to get stacked scatterplot matrixes generated with pairs? I am using version 2.11.1 on Windows XP. The logic I am using follows, and the second pairs plot replaces the first plot in the current graphics device, which is not what I expected (or

Re: [R] Assign Name of Data Frame

2010-02-12 Thread Mike Harwood
Marc, Thank you for your help. I had tried assign, but I did not enclose the table name in quotes in my function call. I needed to see what someone else had written before I ever would have noticed it! On Fri, Feb 12, 2010 at 10:00 AM, Marc Schwartz marc_schwa...@me.comwrote: On Feb 12,