[R] community

2015-06-15 Thread Ragia Ibrahim
Dear group working on a graph..I parse the graph node by node and create cluster for set of nodes..firstly the number of clusters are not knowen what kind of R object can I flexibly use as community, say I want M communities C1,C2..CM how can I define this ? thanks in advance Ragia

Re: [R] Different behavior of model.matrix between R 3.2 and R3.1.1

2015-06-15 Thread Therneau, Terry M., Ph.D.
Frank, I don't think there is any way to fix your problem except the way that I did it. library(survival) tdata - data.frame(y=c(1,3,3,5, 5,7, 7,9, 9,13), x1=factor(letters[c(1,1,1,1,1,2,2,2,2,2)]), x2= c(1,2,1,2,1,2,1,2,1,2)) fit1 - lm( y ~ x1 *

[R] [R-pkgs] version 3.0-0 of bayesm

2015-06-15 Thread Peter Rossi
Version 3.0-0 of bayesm is now on CRAN. All MCMC routines in this version have been recoded using rcpp-Armadillo. This results in speeds gains of between 2 and 30 times faster (hierarchical and density estimation routines are on the higher end of this range) than in bayesm version 2.2-5. The

Re: [R-es] Regresión logística

2015-06-15 Thread Freddy Omar López Quintero
​Holap.​ ran out of iterations and failed to converge ​Prueba aumentando el número de iteraciones, con el argumento maxit: ​GLM - bigglm(In.hospital_death ~ GCS + BUN, data = DatosGLM, family = binomial(logit), maxit=1000)​ ​Salud.​ -- «No soy aquellas sombras tutelares que honré con

[R] Boxplot using a shapefile

2015-06-15 Thread Preethi Balaji
Dear all, I am trying to generate boxplots by giving a shapefile and an image as input. The shapefile takes the pixel values from the image and shows the distribution of pixels in the form of a boxplot. Can somebody please tell me how I can execute this in R? Many thanks! -- Regards, Preethi

[R] Request

2015-06-15 Thread MALIOU Djamil
Dear Sir or Madame, I am a novice in R, and I want to perform a meta analysis of case control studies (analytic), i want a step by step explanation if it's possible, Thanks. Cordially, [[alternative HTML version deleted]] __

[R-es] Regresión logística

2015-06-15 Thread MªLuz Morales
Hola, estoy intentando hacer una regresión logística entre la primera columna de mi data.table (In.hospital_death) y otras dos (GSV y BUN) , me da el error de abajo, he intentado eliminar las filas con valor NA por si esta función no lo admite, pero sigue dando el mismo error. ¿Alguien sabe porqué

[R] Question about saving the context crawled by getNodeSet into a document

2015-06-15 Thread Humphrey Zhao
Dear Sir/Madam: Thank you for your concern. I’m using getNodeSet in XML package to craw data  from web pages, and I need to save it as a document. However, I tried  write.table, write, and cat, but none of above could save the data. The error  messages just like these:  ac-getNodeSet(article, 

[R] Error bars and CI

2015-06-15 Thread Mohan.Radhakrishnan
Hi, I want to plot a line graph using this data. IDX is x-axis and V1 is y-axis. I also want standard error bars and 99% CI to be shown. My code is given below. The section that plots the graph is the problem. I don't see all the points in the line graph with error bars. How can I also show

[R] model selection

2015-06-15 Thread bruno cid
Hi friends, Im trying to make a model selection comparing models built with lm function (package stats) and lme function (package nlme). Do you know if there is a problem to compare these models with the function AICtab (package bbmle). Thanks!!! Bruno Cid Crespo GuimarãesMestre em

[R] problem with nlme, environments, and packages

2015-06-15 Thread Greg Hather
Hello R users, I encountered a strange problem while writing a package that uses the nlme function. First, I wrote some code that uses the nlme function, and it ran without errors. However, when I tried to put the code into a package, the nlme function was unable to locate a function that was

Re: [R] Request

2015-06-15 Thread Michael Dewey
Dear Djamil On 15/06/2015 14:37, MALIOU Djamil wrote: Dear Sir or Madame, I am a novice in R, and I want to perform a meta analysis of case control studies (analytic), i want a step by step explanation if it's possible, You can find details about packages which support meta-analysis in R in

Re: [R] Boxplot using a shapefile

2015-06-15 Thread Boris Steipe
Your workflow in principle is: - read the image into an object for which you can obtain values-per-pixel in a 2D structure; - read the shapefile and convert into a polygon; - determine the bounding box of the polygon; - use the inout() function of the splancs package to get a list of booleans

Re: [R] search across a row for strings

2015-06-15 Thread Sarah Goslee
This faster than your version, and doesn't return NA: df$htn - apply(df[,2:4], 1, function(x)any(grepl(^410, x))) df ID DX1 DX2 DX3 htn 1 1 4109 4280 7102 TRUE 2 2 734 311 490 FALSE 3 3 4011 42822 4101 TRUE system.time({ + for(j in 1:1) { + for (i in 1:nrow(df)) { +

[R] search across a row for strings

2015-06-15 Thread Federman, Douglas
I'm trying to do the following: search each patient's list of diagnoses for a specific code then create a new column based upon the the presence of the specific code. Simplified data follows: con - textConnection( ID DX1 DX2 DX3 1 410942807102 2 734 311

[R] Error in local package install

2015-06-15 Thread Axel Urbiz
Hello, I've built a windows binary package from my Mac using the help from this site: http://win-builder.r-project.org As expected, I got back the file mypackage.zip. Also, the logs show no errors. Now, when I try to install on windows using the GUI install package(s) from local zip files, I

Re: [R] search across a row for strings

2015-06-15 Thread David Winsemius
On Jun 15, 2015, at 1:12 PM, Federman, Douglas wrote: I'm trying to do the following: search each patient's list of diagnoses for a specific code then create a new column based upon the the presence of the specific code. Simplified data follows: con - textConnection( IDDX1

Re: [R] Error in local package install

2015-06-15 Thread Uwe Ligges
On 15.06.2015 22:32, Axel Urbiz wrote: Hello, I've built a windows binary package from my Mac using the help from this site: http://win-builder.r-project.org As expected, I got back the file mypackage.zip. Also, the logs show no errors. No, you got a file packagename_version.zip. Now,

Re: [R] Missing Values in Table Statement

2015-06-15 Thread PIKAL Petr
Hi Why you are so reluctant to use dput for sending us part of your data? The result of str indicates that that SCH_TIME is character vector in which some values are time and others are **empty** strings. But empty string does not mean it is missing string. ***Empty bottle of whisky is not

Re: [R] Different behavior of model.matrix between R 3.2 and R3.1.1

2015-06-15 Thread Frank Harrell
Thank you very much Terry. I'm still puzzled at why this worked a year ago. What changed? I'd very much like to reverse the change by setting an argument somewhere or manipulating the terms object. I echo your sentiments about the general approach. Frank On 06/15/2015 09:05 AM, Therneau,