Re: [R] meta analysis for sensitivity and specificity

2018-12-07 Thread Michael Dewey
Dear Greg I think you are going to need to supply more information. WHat do you mean by "in SAS differently"? If you just want to do an analysis using the Reitsma model then there are options in R of course. https://CRAN.R-project.org/view=MetaAnalysis for further questions may I suggest

Re: [R] sample (randomly select) from successive days

2018-12-07 Thread Dagmar Cimiotti
Hi Jim and everyone else, Mhm, no this is not what I am looking for. I think in your way I would randomly sample two values of day 1 and of day 2. But I want the opposite: I want to randomly draw two successive (!) days and put those values in a new dataframe to continue working with them.

Re: [R] meta analysis for sensitivity and specificity

2018-12-07 Thread Viechtbauer, Wolfgang (SP)
Dear Greg, I am not sure if I understand your question. If you are asking how to do this in R, then one could use the metafor or meta package for this. The specificity and sensitivity values are proportions, so one would usually meta-analyze them after a logit transformation. But all of the

Re: [R] meta analysis for sensitivity and specificity

2018-12-07 Thread greg holly
Dear All; I sincerely apologize for TYPOS. My question is that: Does anyone know any R library that runs meta-analysis differently for Sensitivity and Specificity if I have only the following info in my data set? Once again my apologies for the mistake in my earlier email. Regards, Greg

Re: [R] sample (randomly select) from successive days

2018-12-07 Thread Jeff Newmiller
myfirst <- sample( seq.int( nrow(myframe)-1 ), 1 ) mysample <- myframe[seq( myfirst, myfirst+1),] mysample On December 7, 2018 2:24:11 AM PST, Dagmar Cimiotti wrote: >Hi Jim and everyone else, > >Mhm, no this is not what I am looking for. I think in your way I would >randomly sample two values

Re: [R] Bug (?): reading binary files in Windows 10

2018-12-07 Thread Kate Stone
Ah wow, that answers many questions, thanks! On Thu, Dec 6, 2018 at 4:41 PM Jeff Newmiller wrote: > AFAIK this receiver-side responsibility to specify the text/binary status > of the file is particularly a problem with the "ftp://; protocol because > it does not use MIME file encoding (which

Re: [R] meta analysis for sensitivity and specificity

2018-12-07 Thread greg holly
Hi Viechtbauer and Micheal; Thanks so much for writing. It is much appreciated. Regards, Greg On Fri, Dec 7, 2018 at 6:16 AM Viechtbauer, Wolfgang (SP) < wolfgang.viechtba...@maastrichtuniversity.nl> wrote: > Dear Greg, > > I am not sure if I understand your question. If you are asking how to

[R] sample (randomly select) to get a number of successive days

2018-12-07 Thread Dagmar Cimiotti
Hi Jim and everyone else, Mhm, no this is not what I am looking for. I think in your way I would randomly sample two values of day 1 and of day 2. But I want the opposite: I want to randomly draw two successive (!) days and put those values in a new dataframe to continue working with them. In

Re: [R] sample (randomly select) to get a number of successive days

2018-12-07 Thread Marc Schwartz via R-help
Hi, I am confused. As far as I can tell, only the first day is selected randomly from your dataset. The subsequent 24 days are deterministic, since they need to be consecutive days from the first day, for a total of 25 consecutive days. Thus, all you need to do is to randomly select 1 day

Re: [R] sample (randomly select) from successive days

2018-12-07 Thread Jim Lemon
Hi Dagmar, This will probably involve creating a variable to differentiate the two days in each data.frame: myframe$day<-as.Date(as.character(myframe$Timestamp),"%d.%m.%Y %H:%M:%S") days<-unique(myframe$day) Then just sample the two subsets and concatenate them:

[R] sample (randomly select) from successive days

2018-12-07 Thread Dagmar Cimiotti
Dear all, I have data from a time span like this: myframe <- data.frame (Timestamp=c("24.09.2012 09:00:00", "24.09.2012 10:00:00","25.09.2012 09:00:00", "25.09.2012 09:00:00","24.09.2012 09:00:00", "24.09.2012 10:00:00"),

Re: [R-es] como pasar regression a un dataframe.

2018-12-07 Thread Carlos Ortega
Hola, Puedes usar el paquete "broom" que permite representar todos los resultados de tu modelo, lo que consigues con "summary(tu_modelo)" en formato data.frame. Y con el data.frame, con la funciĆ³n "write.table()" puedes pasarlo a un fichero de texto. Saludos, Carlos Ortega

Re: [R-es] Matriz de Datos

2018-12-07 Thread Carlos Ortega
La alternativa " tidyverse" ... > Lines <- "Descripcion Grupo Monto + a 1 1.826 + a 2 3.497 + a 1 4.749 + b 1 3.999 + b 1 1.638 + b 3 4.445 + c 2 4.935 + c 1 2.299 + c 3 1.111 + " >