[R] question for diallel analysis

2013-08-10 Thread waqas shafqat
plz solve this question and send me commands.. this is a question for diallel analysis(Haymann approach).. F/M male male male male male male male male female 53.333 52.667 53.667 57.333 56.667 58 53.667 58.333 female 52.333 51.333 51.667 53.333 54.333 54.667 52.333 59.333 female 54.333 5

Re: [R] Column names shifted

2013-08-10 Thread arun
Hi, You may try: dat1<- structure(list(Date.Time = c("C", "C", "C"), Unit = c(23L, 23L, 22L), Value = c(207L, 82L, 894L)), .Names = c("Date.Time", "Unit", "Value"), class = "data.frame", row.names = c("27/06/13 02:35:01", "27/06/13 02:50:01", "27/06/13 03:05:01")) dat2<-data.frame(Date.Time=row

Re: [R] coxph diagnostics

2013-08-10 Thread Bert Gunter
Although someone on this list may respond, AFAICS this does not seem to be an R question for R-help.I would suggest that you spend some time with a local statistician. A general observation: Statistical model assumptions neither :hold" nor "don't hold." Quoting George Box, "All models are wrong, b

[R] coxph diagnostics

2013-08-10 Thread Soumitro Dey
Hello all, This may be a naive question but since I'm new to R/survival models, I cannot figure it out the problem myself. I have a coxph model for my data and I am trying to test if the proportional hazards assumption holds. Using cox.zph on the model I get a global score: GLOBAL NA 4.20e+02 0

Re: [R] reactive load of .rdata in shinyapp

2013-08-10 Thread jim holtman
What is happening is that the data is being loaded into the environment of the function which then disappears when the function returns. So you either have to return the values you want from RData in a list, or in an environment as shown below: > x = 1:10 # create some data > y = 2 > z = 3 > sav

[R] reactive load of .rdata in shinyapp

2013-08-10 Thread ivan
Dear R Community I am trying to do the following. I have two .Rdata objects, e.g. res1.Rdata and res2.Rdata. I want to achieve that the user can select the object of interest within shinyapp. I.e. in ui.R I have: radioButtons("object", "Object", list("res1" = 1,