[R] for loop in R

2017-01-12 Thread Jennifer Sheng
Dear friends, I am working on a double loop using for. One level of loop is to predict N times for each subject, and the second level is to predict M times for the every subject, one subject after one subject. Please note every subject have different N or M rows of data. Any advice? Thank yo

[R] Conditionally remove rows with logic

2016-08-07 Thread Jennifer Sheng
Dear all, I need to remove any rows AFTER the label becomes 1. For example, for ID 1, the two rows with TIME of 15 & 18 should be removed; for ID 2, any rows after time 6, i.e., rows of time 9-18, should be removed. Any suggestions? Thank you very much! The current dataset looks like the follo

[R] JM plotting

2016-05-26 Thread Jennifer Sheng
Dear Users, When the joint modeling was run in ER, the run was completed successfully with co-eff output. However, in the terms plotting, somehow the plot (fitjoint.null) does not work, with following error message. Any advice from the group? Thank you very much! Best regards, Jenny Error in

Re: [R] Version R-3.1.0 for Windows

2014-04-10 Thread Sheng Li
Thank you very much for both of you! Cheers, Sheng On Thu, Apr 10, 2014 at 7:02 PM, Erin Hodgess wrote: > thank you! Just wanted to make sure. > > > On Thu, Apr 10, 2014 at 6:00 PM, Uwe Ligges < > lig...@statistik.tu-dortmund.de > > wrote: > > > > > >

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

2013-03-01 Thread Lisa Sheng
Sorry I was asking a question inspired by the original question, which relates to the out of sample prediction. He was asking why it's not of the probability range, and I also found that clogit only gives out linear predictors in both estimation and prediction, but never the probability. For i

[R] Results from clogit out of range?

2013-02-28 Thread Miss SHENG Lisha
I still don't think the exp(lp)/(1+exp(lp)) gonna work. Since this is conditional logit model, while this formula is only used in unconditional ones. By using this, one neglects the information based on stratum. Though I don't know how to solve it to. I am also working on a project on this and I

[R] combined dependent pvalue

2012-10-30 Thread Sheng
Dear All, I am trying to combine dependent p-values in R. May you please help me with this? For independent pvalue combination, one of the popular way is fisher's method which I found the R code here (http://r.789695.n4.nabble.com/fisher-s-posthock-test-or-fisher-s-combination-test-td2195964.html

Re: [R] how R implement qnorm()

2012-10-19 Thread Sheng Liu
Thanks, again! Sorry for my misleading expression, I only knew the value is inquired from a polynomial approximation, but I have no idea how it is done in such a great detail. It's a great lesson for people like me who want a deep understanding of the basics. Sheng On Thu, Oct 18, 2012 at

Re: [R] how R implement qnorm()

2012-10-18 Thread Sheng Liu
the speed. Hope this can help others who had similar questions as well. Sheng On Thu, Oct 18, 2012 at 2:32 AM, peter dalgaard wrote: > > On Oct 18, 2012, at 09:55 , Prof Brian Ripley wrote: > > >> R is a bit confusing as it requires inverse error function (X = > >>

[R] how R implement qnorm()

2012-10-17 Thread Sheng Liu
n the console, it doesn't show it as it is an internal function, I searched around can't found too much information, my hunch is R might be using some internal library that's in the chipset which can calculate erf-1(x), but it is not accessible to user. Any information is welcomed. thanks

Re: [R] How to join matrices of different row length from a list

2011-06-17 Thread Sheng Lin
Can this be used in matplot(x,y,)? where x and y have matching rows. However, each column may have different rows or length. Thanks. Sheng -- View this message in context: http://r.789695.n4.nabble.com/How-to-join-matrices-of-different-row-length-from-a-list-tp3177212p3607158.html Sent from

Re: [R] about heatmap

2010-05-31 Thread sheng zhao
Hi : try this: col=rev(your color) Regards, Sh.Z On Mon, May 31, 2010 at 2:16 PM, Jorge Ivan Velez wrote: > Hi there, > > Take a look at > > http://www2.warwick.ac.uk/fac/sci/moac/currentstudents/peter_cock/r/heatmap/ > > HTH, > Jorge > > > On Mon, May 31, 2010 at 3:54 AM, 孟欣 <> wrote: > >

Re: [R] ffsave.image() error with large objects

2010-02-11 Thread Yue Sheng
So it seems that I've hit the 4GB zipfile limit. However, even if I set compress = FALSE, it still tries to compress, and hence fails. YS On 2/11/10, Yue Sheng wrote: > Hi, I have been using ffsave.image() to save mixture of ff and normal > objects in my workspace. e.g. > >

[R] ffsave.image() error with large objects

2010-02-11 Thread Yue Sheng
Hi, I have been using ffsave.image() to save mixture of ff and normal objects in my workspace. e.g. ffsave.image(file = "C:\output\saveobjects", rootpath = "D:\fftempdir", safe = TRUE) It works fine but once my workspace has large (~4GB) objects, I get the error: Error in ffsave.image(file = "C:

[R] Save workspace with ff objects

2009-11-26 Thread Yue Sheng
individual ff objects separately? I've tried the naive way of just saving the workspace, only to find that ff objects are empty. Thanks for help. Yue Sheng [[alternative HTML version deleted]] __ R-help@r-project.org mailing list

[R] bigglm "update" with ff

2009-04-02 Thread Yue Sheng
Hi, since bigglm doesn't have update, I was wondering how to achieve something like (similar to the example in ff package manual using biglm): first <- TRUE ffrowapply ({ if (first) { first <- FALSE fit <- bigglm(eqn, as.data.frame(bigdata[i1:i2,,drop=FALSE]), chunksize = 1, family =

[R] heatmap.2 question

2008-11-03 Thread Fu Sheng
Hi, there, I am planning to use heatmap.2 function to draw some heatmaps. However, I don't want to use default set manhattan distance and complete linkage in heatmap.2. How should I change parameters distfun and hclustfun? Thank you. ys [[alternative HTML version deleted]] _

[R] princomp loading help

2008-07-10 Thread Wu, Hong-Sheng
Dear all, When I print out princomp's loading outputs, there is alwasy a section for "SS loading", "Proportional Var" and "Cumulative Var". Anybody can tell what they are for? Or anyone can direct me to some reference to read about? Any help will be highly appricated. Hongsheng [[