[R] simple maths question

2011-04-11 Thread Georg Ehret
Hi Mrs Ms R, A simple maths question that I am trying to resolve with R: I need to calculate the SE from a pvalue and it's beta... How to do this...? Thank you very much and best regards! Georg Ehret, Geneva, Switzerland. [[alternative HTML version deleted

[R] graphical representation of a correlation between 3 variables (~30 datapoints)

2010-06-07 Thread Georg Ehret
of the values of the variables. I had done this with simple bargraphs for 6 datapoints in the past, but for 30 this is too much. Anyone a good idea how to get this job nicely done? Thanking you and best regards, Georg. ## Georg Ehret Johns Hopkins Baltimore

Re: [R] plotting a dataset with median 0

2010-06-05 Thread Georg Ehret
. ** Georg Ehret Johns Hopkins Baltimore On Sat, Jun 5, 2010 at 12:00 PM, Jim Lemon j...@bitwrit.com.au wrote: On 06/05/2010 07:35 AM, Georg Ehret wrote: Dear R community, I am working on a dataset that has median 0 (due to many 0 entries) for my principal variable of interest

[R] plotting a dataset with median 0

2010-06-04 Thread Georg Ehret
Dear R community, [[alternative HTML version deleted]] __ R-help@r-project.org mailing list 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,

[R] plotting a dataset with median 0

2010-06-04 Thread Georg Ehret
). Conventional scatterplots are neither. Is there a good way to do this (e.g. plotting the 0 values with a jitter or something else...)? Thanking you all and best regards, Georg. * Georg Ehret Johns Hopkins Baltimore [[alternative HTML version deleted

[R] calculating an interaction statistic from stratified data

2010-04-04 Thread Georg Ehret
? Thank you very much and best regards, Georg. Georg Ehret, JHU, Baltimore [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide

[R] get problem

2010-02-24 Thread Georg Ehret
many different objects, but the pasting together did not work and this simple example does not neither...] Thank you and best regards, Georg. *** Georg Ehret JHU Baltimore [[alternative HTML version deleted]] __ R-help@r

[R] regression on large file

2009-10-28 Thread Georg Ehret
to out. Although improved, this is still very slow... Can someone please help me and suggest how I can make this faster? Thank you and best regards, Georg. *** Georg Ehret, Johns Hopkins U, Baltimore MD, USA for (i in 16:nmax){ line-scan(file=paste(file

[R] regressions on large dataframe: speed?

2009-10-09 Thread Georg Ehret
thing is terribly slow... I observed that it's faster when breaking down the file. But other suggestions could you please make to make it run faster (say days instead of weeks). Thank you and best regards, Georg. * Georg Ehret, Johns Hopkins Medicine [[alternative HTML

[R] running many different regressions

2009-09-20 Thread Georg Ehret
? Thank you and best regards, Georg. * Georg Ehret Johns Hopkins University Institute of Genetic Medicine [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman

[R] robust regression

2009-01-22 Thread Georg Ehret
Dear Miss R, I have a large dataset that is skewed and would like to calculate confidence intervals for my regression line. Unfortunately I have trouble finding commands for rubust regression and in particular for the confidence intervals... Can you possibly give a hint? Thank you and best

[R] plotting points with two colors

2009-01-20 Thread Georg Ehret
. *** Georg Ehret Geneva University Hospital Geneva, Switzerland [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org

[R] plotting several datasets with different scales into same plot

2008-12-06 Thread Georg Ehret
...? Thanking you and wishing you all an excellent Sunday! Cheers, Georg. * Georg Ehret Geneva University Hospital Switzerland [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch

[R] assigning a new variable to multiple data frames

2008-12-06 Thread Georg Ehret
Dear R community, I am trying to assign a new variable (named new) to multiple dataframes by a loop and do not succeed... Can you please help? Thank you and best regards, Georg Ehret. c V1 V2 V3 V4 V5 V6 V7 V8 V9 V10 1 1 11 21 31 41 51 61 71 81 91 2 2 12 22 32 42 52 62 72 82 92 3 3

[R] applying an operation for several dataframes

2008-11-22 Thread Georg Ehret
5 5 15 25 35 45 55 65 75 85 95 6 6 16 26 36 46 56 66 76 86 96 7 7 17 27 37 47 57 67 77 87 97 8 8 18 28 38 48 58 68 78 88 98 9 9 19 29 39 49 59 69 79 89 99 10 10 20 30 40 50 60 70 80 90 100 names-c(c,cc) for(i in names){nrow(i)} Thank you! Georg. * Georg

[R] number of effective tests

2008-07-10 Thread Georg Ehret
0.3323826 ST 0.9554952 0.9101678 1.000 0.2756876 0.3031676 0.3501157 DR 0.2975892 0.3324979 0.2756876 1.000 0.9981733 0.9674843 DU 0.3211303 0.3331389 0.3031676 0.9981733 1.000 0.9977780 DT 0.3314694 0.3323826 0.3501157 0.9674843 0.9977780 1.000 * Georg Ehret Johns

[R] lm and NA

2008-06-30 Thread Georg Ehret
7 NA lm(a~b)$residuals 1 2 3 4 0 0 0 0 lm(a~b,na.action=na.exclude)$residuals 1 2 3 4 0 0 0 0 Thank you and best regards! Georg. ** Georg Ehret Johns Hopkins Baltimore, USA [[alternative HTML version deleted]] __ R-help

[R] density and jpeg

2008-06-26 Thread Georg Ehret
] 0.700218 0.700175 0.700357 0.700847 0.698286 0.701520 0.698158 0.699300 0.698819 [10] 0.698521 densityplot(~d[1:10]) - crash... Thank you! Georg. * Georg Ehret Johns Hopkins Baltimore, MD USA [[alternative HTML version deleted

[R] plotting pie-charts into a coordinate system

2008-05-04 Thread Georg Ehret
a wonderful Sunday! Georg. ** Georg Ehret Johns Hopkins Baltimore USA [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http

[R] splitting a vector on comma

2008-05-04 Thread Georg Ehret
. Georg Ehret Baltimore USA [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide

[R] boxplots

2008-04-29 Thread Georg Ehret
is clearly 0! Thanking you and wishing you an excellent day, Georg. *** Georg Ehret Johns Hopkins University Baltimore, US [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch

[R] data.frame indexing

2008-04-28 Thread Georg Ehret
is not a problem (a_indexb), but how can do get only the elements left if I take out the elements indexed with b? Thank you and wishing you a great day! Georg. Georg Ehret Baltimore, US [[alternative HTML version deleted

[R] combining two (or more) tables by creating another dimension

2008-04-23 Thread Georg Ehret
Dear R community, I wish to combine two tables in one by adding an additional dimension: e.g.: t1-as.table(matrix(rnorm(40),nrow=4,ncol=10));rownames(t1)-c(rowone,rowtwo,rowthree,rowfour) t1 A B C D E F G H

[R] levels in dataframes

2008-04-22 Thread Georg Ehret
data has been deleted? Thank you and wishing you an excellent day! Georg. Georg Ehret Johns Hopkins Baltimore, US [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https

[R] jpeg legend space issues

2008-04-21 Thread Georg Ehret
and this did not help... (fig permits for a larger margin, but the text is still not plotted correctly). Thank you and wishing you an excellent day! Georg. *** Georg Ehret Johns Hopkins Baltimore, USA [[alternative HTML version deleted

[R] heavy graphs

2008-04-15 Thread Georg Ehret
idea is also warmly welcome! Thank you and wishing you a good day! Georg. ** Georg Ehret Johns Hopkins Baltimore - US [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman

Re: [R] how to write a table to pdf

2008-04-15 Thread Georg Ehret
Dear Stanley, Alternatively you can also look at textplot from the gregmisc package. Cheers, Georg. Georg Ehret Johns Hopkins Baltimore, US On Tue, Apr 15, 2008 at 4:11 PM, Mark Wardle [EMAIL PROTECTED] wrote: I would look at Sweave, particularly outputting to LaTeX

[R] basics on dataframes

2008-04-05 Thread Georg Ehret
do wrong. I know that I can use the command subset and the NAs will not appear, but what is wrong with a[a$V11,]? Thank you! Georg. *** Georg Ehret Johns Hopkins Baltimore, USA a V1V2 V3 V4 V5 1 NANA NA

[R] including a variable in another variable name

2008-04-02 Thread Georg Ehret
in paste(data, a[1]) - c(1, 2, 3) : target of assignment expands to non-language object Thank you and wishing you an excellent day! Georg. ** Georg Ehret Johns Hopkins Baltimore, MD USA [[alternative HTML version deleted

[R] using a variable in a subset of a dataframe

2008-04-01 Thread Georg Ehret
Dear R community,I am using a dataset and would like to define new variables using a R variable: e.g. for (i in 1:10){ dataset$i-something } But this is not the right way, I get only one variable in dataset... How can I change this? Thank you! Georg. Georg Ehret

[R] background color in scatterplots

2008-03-28 Thread Georg Ehret
Dear R community,I have a scatterplot with multiple vertical ablines. I wish to color each interval between two ablines in a different color... Could you please indicate me how to do this efficiently? Thank you! Georg. Georg Ehret Johns Hopkins Baltimore

[R] read.table

2008-03-05 Thread Georg Ehret
it wrong or is there a bug? Thanks and wishing you a great remainder of the day, Georg. ** Georg Ehret JHU Baltimore - US __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting

[R] printing tables to a pdf

2008-02-29 Thread Georg Ehret
Dear R community, I wish to print tables into a pdf file. How can this be done, adding headers and several tables to the same file? Thanking you for your attention, Georg. * Georg Ehret Johns Hopkins Baltimore - US [[alternative HTML version deleted

[R] coloring a graph left or right of an abline

2008-02-21 Thread Georg Ehret
Dear R community, I would wish to color the background of my histogram differently to the left and right of an abline... Can you please help? Thankin you, Georg. Georg Ehret JHU Baltimore - USA [[alternative HTML version deleted

[R] two graphs

2008-01-07 Thread Georg Ehret
. *** Georg Ehret JHU Baltimore, MD 21043, USA [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html

[R] determine the number of digits printed into graph with text(...)

2007-11-25 Thread Georg Ehret
. ** Georg Ehret Johns Hopkins Baltimore callrates-read.table(RSG,col.names=c(variant,callrate)) hist(callrates[,2],breaks=100) fraction-nrow(callrates[callrates$callrate=0.9,])/nrow(callrates) hist(callrates[,2],breaks=100) text(0.4,500,proportion of callrates = 0.9:) text(0.4,450,fraction

[R] adding total row/column to table-command

2007-10-24 Thread Georg Ehret
, Georg. *** Georg Ehret Johns Hopkins Baltimore [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org

[R] simple function with if - lapply to dataframe

2007-10-10 Thread Georg Ehret
Dear R, I am writing a simple function to extract the sign of values and apply it to a data frame (see below). Whatever I do I get error-messages... What is wrong? Thanking you in advance, Cheers, Georg. *** Georg Ehret Institute of Genetic Medicine Johns Hopkins University