Re: [R] selectFGR - variable selection in fine gray model for competing risks

2018-03-20 Thread Ronald Geskus
Dear Raja, A Fine and Gray model can be fitted using the standard coxph function with weights that correct for right censoring and left truncation. Hence I guess any function that allows to perform stepwise regression with coxph should work. See e.g. my article in Biometrics https://doi.org/10.111

Re: [R] Mean of a row of a data frame

2018-03-20 Thread Richard M. Heiberger
rowMeans is designed for speed. It also has as.matrix inside it. On Tue, Mar 20, 2018 at 10:40 PM, Boris Steipe wrote: > R > rowMeans(roop) > [1] 1.67 5.33 3.00 > R > mean(as.numeric(roop[1,])) > [1] 1.67 > > > :-) > > > > >> On Mar 20, 2018, at 10:18 PM, Sorkin, John wrote: >>

Re: [R] Mean of a row of a data frame

2018-03-20 Thread Richard M. Heiberger
> mean(list(1,4,0)) [1] NA Warning message: In mean.default(list(1, 4, 0)) : argument is not numeric or logical: returning NA > mean(unlist(roop[1,])) [1] 1.67 > apply(roop, 1, mean) [1] 1.67 5.33 3.00 data.frame is a list with some matrix characteristics. The list characteristic

Re: [R] Mean of a row of a data frame

2018-03-20 Thread Boris Steipe
R > rowMeans(roop) [1] 1.67 5.33 3.00 R > mean(as.numeric(roop[1,])) [1] 1.67 :-) > On Mar 20, 2018, at 10:18 PM, Sorkin, John wrote: > > I am trying to get the mean of a row of a data frame. My code follows: > > > roop <- data.frame(x=c(1,2,3),y=c(4,5,2),z=c(0,9,4)) > roo

[R] Mean of a row of a data frame

2018-03-20 Thread Sorkin, John
I am trying to get the mean of a row of a data frame. My code follows: roop <- data.frame(x=c(1,2,3),y=c(4,5,2),z=c(0,9,4)) roop mean(roop[1,]) mean(roop[1,c("x","y","z")]) I get the following output: > roop x y z 1 1 4 0 2 2 5 9 3 3 2 4 > mean(roop[1,]) [1] NA Warning message: In mean.defau

Re: [R] problem with rJAVA

2018-03-20 Thread Jeff Newmiller
Are you familiar with the sessionInfo function? -- Sent from my phone. Please excuse my brevity. On March 20, 2018 6:27:23 PM PDT, "Sorkin, John" wrote: >I have installed rJava into my Windows 10 (64-bit) R instillation using >the Tools > Install Packages command of my RStudion IDE. When I iss

[R] problem with rJAVA

2018-03-20 Thread Sorkin, John
I have installed rJava into my Windows 10 (64-bit) R instillation using the Tools > Install Packages command of my RStudion IDE. When I issued the R command in my R code library(rJava) I received the following error: library(rJava) Error: package or namespace load failed for �rJava� in get(I

Re: [R] Elements of Sets as dataframe column names

2018-03-20 Thread Jim Lemon
Hi Neha, >From your message I think that you might get what you want with: names(df)<-unlist(B) However, the "sets" package might handle lists differently. Jim On Tue, Mar 20, 2018 at 2:24 PM, Neha Aggarwal wrote: > Hello all, > > I have a set B and a dataframe df. I want to name the columns o

[R] R 3.5.0 scheduled for April 23

2018-03-20 Thread Peter Dalgaard via R-help
Full schedule available on developer.r-project.org (pending auto-update from SVN) -- Peter Dalgaard, Professor, Center for Statistics, Copenhagen Business School Solbjerg Plads 3, 2000 Frederiksberg, Denmark Phone: (+45)38153501 Office: A 4.23 Email: pd@cbs.dk Priv: pda...@gmail.com __

[R] Problem with lvs Normalization

2018-03-20 Thread Ali Mohammadian
Hi! Anyone can help how I can do LVS normalization starting from an EList.raw created using: data= read.maimages(files, green.only=T, columns= list(E='gMedianSignal',Eb='gBGUsed')) thanks in advance __ R-help@r-project.org mailing list -- To UNSUBSCRI