Re: [R] plotting the regression coefficients

2018-02-07 Thread PIKAL Petr
Hi

Example, example, example - preferably working.

Wild guess - did you try ggplot?

Cheers
Petr


> -Original Message-
> From: R-help [mailto:r-help-boun...@r-project.org] On Behalf Of greg holly
> Sent: Thursday, February 8, 2018 8:14 AM
> To: r-help mailing list 
> Subject: [R] plotting the regression coefficients
>
> Hi Dear all;
>
> I would like to create a plot for regression coefficients with each 
> independent
> variable (x) along the side and the phenotypes (y) across the top (as given
> below). For each data point, direction and magnitude of effect could be color
> and significance could be the size of the circle? Is this possible?
>
>
> I would greatly be appreciated your help.
>
> Thanks,
>
> Greg
>
>
>
>   y1 y2 y3 y4 y5 y6
> x1
> x2
> x3
> x4
> x5
> x6
> x7
> x8
> x9
> x10
> x11
> x12
> x13
> x14
> x15
> x16
> x17
> .
> .
>
> [[alternative HTML version deleted]]
>
> __
> R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.


Tento e-mail a jakékoliv k němu připojené dokumenty jsou důvěrné a jsou určeny 
pouze jeho adresátům.
Jestliže jste obdržel(a) tento e-mail omylem, informujte laskavě neprodleně 
jeho odesílatele. Obsah tohoto emailu i s přílohami a jeho kopie vymažte ze 
svého systému.
Nejste-li zamýšleným adresátem tohoto emailu, nejste oprávněni tento email 
jakkoliv užívat, rozšiřovat, kopírovat či zveřejňovat.
Odesílatel e-mailu neodpovídá za eventuální škodu způsobenou modifikacemi či 
zpožděním přenosu e-mailu.

V případě, že je tento e-mail součástí obchodního jednání:
- vyhrazuje si odesílatel právo ukončit kdykoliv jednání o uzavření smlouvy, a 
to z jakéhokoliv důvodu i bez uvedení důvodu.
- a obsahuje-li nabídku, je adresát oprávněn nabídku bezodkladně přijmout; 
Odesílatel tohoto e-mailu (nabídky) vylučuje přijetí nabídky ze strany příjemce 
s dodatkem či odchylkou.
- trvá odesílatel na tom, že příslušná smlouva je uzavřena teprve výslovným 
dosažením shody na všech jejích náležitostech.
- odesílatel tohoto emailu informuje, že není oprávněn uzavírat za společnost 
žádné smlouvy s výjimkou případů, kdy k tomu byl písemně zmocněn nebo písemně 
pověřen a takové pověření nebo plná moc byly adresátovi tohoto emailu případně 
osobě, kterou adresát zastupuje, předloženy nebo jejich existence je adresátovi 
či osobě jím zastoupené známá.

This e-mail and any documents attached to it may be confidential and are 
intended only for its intended recipients.
If you received this e-mail by mistake, please immediately inform its sender. 
Delete the contents of this e-mail with all attachments and its copies from 
your system.
If you are not the intended recipient of this e-mail, you are not authorized to 
use, disseminate, copy or disclose this e-mail in any manner.
The sender of this e-mail shall not be liable for any possible damage caused by 
modifications of the e-mail or by delay with transfer of the email.

In case that this e-mail forms part of business dealings:
- the sender reserves the right to end negotiations about entering into a 
contract in any time, for any reason, and without stating any reasoning.
- if the e-mail contains an offer, the recipient is entitled to immediately 
accept such offer; The sender of this e-mail (offer) excludes any acceptance of 
the offer on the part of the recipient containing any amendment or variation.
- the sender insists on that the respective contract is concluded only upon an 
express mutual agreement on all its aspects.
- the sender of this e-mail informs that he/she is not authorized to enter into 
any contracts on behalf of the company except for cases in which he/she is 
expressly authorized to do so in writing, and such authorization or power of 
attorney is submitted to the recipient or the person represented by the 
recipient, or the existence of such authorization is known to the recipient of 
the person represented by the recipient.
__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


[R] plotting the regression coefficients

2018-02-07 Thread greg holly
Hi Dear all;

I would like to create a plot for regression coefficients with each
independent variable (x) along the side and the phenotypes (y) across the
top (as given below). For each data point, direction and magnitude of
effect could be color and significance could be the size of the circle? Is
this possible?


I would greatly be appreciated your help.

Thanks,

Greg



  y1 y2 y3 y4 y5 y6
x1
x2
x3
x4
x5
x6
x7
x8
x9
x10
x11
x12
x13
x14
x15
x16
x17
.
.

[[alternative HTML version deleted]]

__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


Re: [R-es] Ayuda OVER_QUERY_LIMIT

2018-02-07 Thread Javier Marcuzzi
Estimado David Contreras

Hay dos formas, si tienes el dinero o si no tienes el dinero.

Si no tienes el dinero, no te preocupes, aparentemente la API le deja leer
algunos registros diarios, entonces todos los días puedes leer algunos y
guardarlos.

Si tienes el dinero te puedo comentar que es lindo que nos abonen por
nuestro trabajo.

Yo antes intentaba ahorrar todo lo que podía, pero la realidad era que
gastaba mucho tiempo y no andaba bien, luego comencé a pagar dentro de mis
posibilidades, y me di cuenta que ahorraba tiempo y mi tiempo también
cuesta.

Javier Rubén Marcuzzi

El 7 de febrero de 2018, 17:36, David Contreras 
escribió:

> Buena tarde a todos,
>
> Estos realizando un proceso que requiere asignar coordenadas a un buen
> número de registros. Estoy usando el paquete ggmap, pero luego de hacer uso
> de la georeferenciación se genera el error "geocode failed with status
> OVER_QUERY_LIMIT" debido al límite de registros diarios. A pesar de decir
> el error que es cada día, ya me está generando error con pocos registros
> incluso sin completar los 2500 del día.
> En general la georeferenciación sirve de manera intermitente, es decir a
> veces sirve y a veces no.
>
> Nos gustaría si hay alguna forma de evitar que se genere este error sin
> tener que pagar dinero por la licencia de API.
>
> Gracias.
>
>
>
>
> *David Contreras*
>
> Estadístico.
> davidcontrera...@gmail.com 
>
> [[alternative HTML version deleted]]
>
> ___
> R-help-es mailing list
> R-help-es@r-project.org
> https://stat.ethz.ch/mailman/listinfo/r-help-es
>

[[alternative HTML version deleted]]

___
R-help-es mailing list
R-help-es@r-project.org
https://stat.ethz.ch/mailman/listinfo/r-help-es


Re: [R-es] Optimizar código

2018-02-07 Thread Fernando Sanchez via R-help-es
Hola a todos,Muchas gracias por las propuestas. He probado las tres y han 
funcionado perfectamente.saludos,Fernando

  De: Javier Marcuzzi 
 Para: Fernando Sanchez  
CC: "r-help-es@r-project.org" 
 Enviado: Miércoles 7 de febrero de 2018 13:46
 Asunto: Re: [R-es] Optimizar código
   
Estimado Fernando Sanchez
Creo que son buenas las ayudas que te han brindado, pero aparte de estas 
siempre puedes realizar una compilación de un código que no está optimizado, 
puedes ver el siguiente hipervínculo 
http://homepage.divms.uiowa.edu/~luke/R/compiler/compiler.pdf
Javier Rubén Marcuzzi
El 6 de febrero de 2018, 19:15, Fernando Sanchez via R-help-es 
 escribió:

Hola a todos,
Os pongo aquí debajo un pequeño fragmento de código. Resulta que dispongo de 
una CADENA que tiene dos columnas. Una con palabras y la otra que dice si es 
bueno o malo. En otra variable tengo una LISTA. Quiero cruzar todas las 
palabras de la lista con todas las de la cadena y cuando alguna coincida, que 
me indique en qué fila está y también si la palabra es "buena" o "mala". El 
código que os pongo más abajo funciona, pero es poco eficiente cuando las 
listas son más largas.
Se os ocurre otra forma de programarlo más elegantemente en R.

CADENA_1<-c("caliente","frío", "gordo","flaco")CADENA_2<-c(" 
bueno","malo","bueno","malo") CADENA<-rbind(CADENA_1,CADENA_ 
2)CADENA<-t(CADENA)LISTA<-c(" caliente","perro","flaco"," gato","coche")
for (i in 1:nrow(CADENA)) {for (j in 1:length(LISTA)) {if(toString(LISTA[j])== 
toString(CADENA[i,1]))  {print(paste("fila:",j,CADENA[ i,2],sep=" "))}}}
Un saludo y muchas gracias a todos.
        [[alternative HTML version deleted]]

__ _
R-help-es mailing list
R-help-es@r-project.org
https://stat.ethz.ch/mailman/ listinfo/r-help-es




   
[[alternative HTML version deleted]]

___
R-help-es mailing list
R-help-es@r-project.org
https://stat.ethz.ch/mailman/listinfo/r-help-es


[R-es] Ayuda OVER_QUERY_LIMIT

2018-02-07 Thread David Contreras
Buena tarde a todos,

Estos realizando un proceso que requiere asignar coordenadas a un buen
número de registros. Estoy usando el paquete ggmap, pero luego de hacer uso
de la georeferenciación se genera el error "geocode failed with status
OVER_QUERY_LIMIT" debido al límite de registros diarios. A pesar de decir
el error que es cada día, ya me está generando error con pocos registros
incluso sin completar los 2500 del día.
En general la georeferenciación sirve de manera intermitente, es decir a
veces sirve y a veces no.

Nos gustaría si hay alguna forma de evitar que se genere este error sin
tener que pagar dinero por la licencia de API.

Gracias.




*David Contreras*

Estadístico.
davidcontrera...@gmail.com 

[[alternative HTML version deleted]]

___
R-help-es mailing list
R-help-es@r-project.org
https://stat.ethz.ch/mailman/listinfo/r-help-es


Re: [R-es] Contar comas de una variable

2018-02-07 Thread Marcelino de la Cruz Rot

Así:


Pros<- c("calidad,", "calidad, diseño, color,", "precio, accesibilidad, 
sienta bien, luminoso,")

(Comas <-sapply(strsplit(Pros, ","), length))





El 07/02/2018 a las 17:55, Miriam Alzate escribió:

Buenas tardes,

Necesito contar cuántas comas hay en cada celda. Los datos tienen esta 
forma:


 Pros Comas
Opinión 1    calidad,    1
Opinión 2    calidad, diseño, color, 3
Opinión 3    precio, accesibilidad, sienta bien, luminoso, 4


La variable Pros es la que tengo y la variable Comas es la que recoge 
cuántas comas hay en la variable Pros.


Un saludo

Miriam

___
R-help-es mailing list
R-help-es@r-project.org
https://stat.ethz.ch/mailman/listinfo/r-help-es
.



--
Marcelino de la Cruz Rot
Depto. de Biología y Geología
Física y Química Inorgánica
Universidad Rey Juan Carlos
Móstoles España

___
R-help-es mailing list
R-help-es@r-project.org
https://stat.ethz.ch/mailman/listinfo/r-help-es


Re: [R-es] Contar comas de una variable

2018-02-07 Thread Carlos Ortega
Hola,

Esta es una forma...

> library(stringr)
> val <- c("hola, hola, hola, hola")
>
> num_com <- str_count(val, pattern = "," )
> num_com
[1] 3

Saludos,
Carlos Ortega
www.qualityexcellence.es

El 7 de febrero de 2018, 17:55, Miriam Alzate 
escribió:

> Buenas tardes,
>
> Necesito contar cuántas comas hay en cada celda. Los datos tienen esta
> forma:
>
>  Pros Comas
> Opinión 1calidad,1
> Opinión 2calidad, diseño, color, 3
> Opinión 3precio, accesibilidad, sienta bien, luminoso, 4
>
>
> La variable Pros es la que tengo y la variable Comas es la que recoge
> cuántas comas hay en la variable Pros.
>
> Un saludo
>
> Miriam
>
> ___
> R-help-es mailing list
> R-help-es@r-project.org
> https://stat.ethz.ch/mailman/listinfo/r-help-es
>



-- 
Saludos,
Carlos Ortega
www.qualityexcellence.es

[[alternative HTML version deleted]]

___
R-help-es mailing list
R-help-es@r-project.org
https://stat.ethz.ch/mailman/listinfo/r-help-es


[R] Error when running duplicate scale imputation for multilevel data

2018-02-07 Thread Yvonne Yock
Hi,

I am working with a multiple-item questionnaire. I have previously done
item-level multiple imputation using MICE in R and right now I am
attempting duplicate-scale imputation based on the guidelines listed in
Enders's applied missing data analysis book.

I use MICE to do MI as it allows me to specify school effect as I am
working with multilevel data; my respondents come from different schools.

I had no problem running the item-level MI with the school effect. However,
I encounter problem running the duplicate-scale MI when I included the
school effect. I saw this error message '*Error in x + diag(diag(x) *
ridge) : non-conformable arrays*'. I did not get any error message when I
re-ran without school effect.

What could be the reason why I am facing difficulties running duplicate
scale imputation when I specify school effect?

Thanks. ( I have not included any codes as I am not sure if it will be
useful)
Regards,
Yvonne

[[alternative HTML version deleted]]

__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


[R-es] Contar comas de una variable

2018-02-07 Thread Miriam Alzate

Buenas tardes,

Necesito contar cuántas comas hay en cada celda. Los datos tienen esta 
forma:


 Pros Comas
Opinión 1calidad,1
Opinión 2calidad, diseño, color, 3
Opinión 3precio, accesibilidad, sienta bien, luminoso, 4


La variable Pros es la que tengo y la variable Comas es la que recoge 
cuántas comas hay en la variable Pros.


Un saludo

Miriam

___
R-help-es mailing list
R-help-es@r-project.org
https://stat.ethz.ch/mailman/listinfo/r-help-es


Re: [R-es] CRON JOBS

2018-02-07 Thread Javier Marcuzzi
Yo entiendo que SQL Server licencia junto RServer, no se si lo venden
suelto.

El 7 de febrero de 2018, 12:19, Jesús Para Fernández <
j.para.fernan...@hotmail.com> escribió:

> Gracias a otdos por vuestrs respuestas.
>
> No sabia que rserver de microsoft fuera de pago, de hecho no veo nada por
> ahi donde figure ese aspecto. He visto que viene integrado con SQLServer,
> porlo uqe entiendo que pagada la licencia de SQLserver, R va integrado ya.
> ¿Es asi?
>
> Gracias!!!
> Jesús
> --
> *De:* Javier Marcuzzi 
> *Enviado:* miércoles, 7 de febrero de 2018 13:40
> *Para:* Jesús Para Fernández
> *Cc:* r-help-es@r-project.org
> *Asunto:* Re: [R-es] CRON JOBS
>
> Estimado Jesús Para Fernández
>
> R server es una versión comercial de Microsoft, entiendo que todo eso está
> solucionado para el escenario que usted plantea y debe haber más de una
> forma dependiendo de algunas variables particulares, lo más seguro y para
> no tener problemas, puede consultar directamente a ellos, no es por
> despreciar la consulta en la lista, sino para estar 100 % seguro, no vaya a
> ser que por dar por entendido algo cometamos un error y arruinemos su
> trabajo.
>
> Desde mi punto de vista, debe ser configurado como servicio desde el
> sistema operativo, pero al ser ambos de la misma empresa, seguramente hay
> una forma más simple que la otra, yo supe usar la versión R Server, lo que
> tiene de lindo es la posibilidad de realizar reportes, sin embargo lo que
> tiene de feo, es que las librerías eran obsoletas, o puesto de otra forma,
> tiene mayor estabilidad por ser más probado pero al costo de no tener
> disponible las características posteriores a la versión de R Server.
>
> Usted tiene instalado R Server? Porque posiblemente pueda leer desde su
> computadora alguna estrategia para su necesidad.
>
> Javier Rubén Marcuzzi
>
> El 6 de febrero de 2018, 16:15, Jesús Para Fernández <
> j.para.fernan...@hotmail.com> escribió:
>
> Buenas,
>
> Voy a dejar un programa en produccion en un servidor, el cual tiene que
> ejecutarse cada minuto, y si se reinicia el servidor o lo uqe sea, que se
> ponga a trabajar directamete.
>
> ¿R server permite hacer eso, o tengo que generar un script que se ejecute
> desde un cronjob del servidor?
>
> Desde mi ignorancia, considero que la segunda opcion es la más robusta
> frente a fallos.
>
> Un saludo
> Jesús
>
> [[alternative HTML version deleted]]
>
>
> ___
> R-help-es mailing list
> R-help-es@r-project.org
> https://stat.ethz.ch/mailman/listinfo/r-help-es
> 
>
>
>

[[alternative HTML version deleted]]

___
R-help-es mailing list
R-help-es@r-project.org
https://stat.ethz.ch/mailman/listinfo/r-help-es


Re: [R-es] Optimizar código

2018-02-07 Thread Javier Marcuzzi
Estimado Fernando Sanchez

Creo que son buenas las ayudas que te han brindado, pero aparte de estas
siempre puedes realizar una compilación de un código que no está
optimizado, puedes ver el siguiente hipervínculo
http://homepage.divms.uiowa.edu/~luke/R/compiler/compiler.pdf

Javier Rubén Marcuzzi

El 6 de febrero de 2018, 19:15, Fernando Sanchez via R-help-es <
r-help-es@r-project.org> escribió:

> Hola a todos,
> Os pongo aquí debajo un pequeño fragmento de código. Resulta que dispongo
> de una CADENA que tiene dos columnas. Una con palabras y la otra que dice
> si es bueno o malo. En otra variable tengo una LISTA. Quiero cruzar todas
> las palabras de la lista con todas las de la cadena y cuando alguna
> coincida, que me indique en qué fila está y también si la palabra es
> "buena" o "mala". El código que os pongo más abajo funciona, pero es poco
> eficiente cuando las listas son más largas.
> Se os ocurre otra forma de programarlo más elegantemente en R.
>
> CADENA_1<-c("caliente","frío","gordo","flaco")CADENA_2<-c("
> bueno","malo","bueno","malo")CADENA<-rbind(CADENA_1,CADENA_
> 2)CADENA<-t(CADENA)LISTA<-c("caliente","perro","flaco","gato","coche")
> for (i in 1:nrow(CADENA)) {for (j in 1:length(LISTA))
> {if(toString(LISTA[j])==toString(CADENA[i,1]))
> {print(paste("fila:",j,CADENA[i,2],sep=" "))}}}
> Un saludo y muchas gracias a todos.
> [[alternative HTML version deleted]]
>
> ___
> R-help-es mailing list
> R-help-es@r-project.org
> https://stat.ethz.ch/mailman/listinfo/r-help-es
>

[[alternative HTML version deleted]]

___
R-help-es mailing list
R-help-es@r-project.org
https://stat.ethz.ch/mailman/listinfo/r-help-es


[R] [R-pkgs] OutliersO3 version 0.5.3 released

2018-02-07 Thread Antony Unwin
Dear all,

A revised version of OutliersO3 is available on CRAN:
>.

The package has been restructured.  The default is now that the tolerance level 
is set individually for each of the (six) outlier methods included.  Plots have 
been added, as have outlier tables and scores for further analysis.  It is also 
possible to draw an O3 plot using your own outlier identification method, see 
the vignette for more details.

There are four vignettes to illustrate the use of the package.

Queries, comments, suggestions are welcome.  Thanks to Michael Friendly, 
Tae-Rae Kim, Nina Wu, and, in particular, Bill Venables for their comments on 
the old version.

Regards

Antony

Professor Antony Unwin
Mathematics Institute,
University of Augsburg, 
86135 Augsburg, Germany
[[alternative HTML version deleted]]

___
R-packages mailing list
r-packa...@r-project.org
https://stat.ethz.ch/mailman/listinfo/r-packages

__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.