[R] sm.regression , one-covariate graph and regression line width

2011-09-27 Thread Giulio Di Giovanni
Hi all, I'm using sm library. In the two-dimensional plot of the analysis with one covariate, I'm able to modify several graphic parameters, either specifying them directly in the sm.regression() function, either through sm.options().The only graphical parameter i cannot modify is the width of

[R] (no subject)

2011-05-07 Thread Giulio Di Giovanni
http://kabarknives.handmadebestgifts.com/wp-content/plugins/mylife.html [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do re

Re: [R] Sample size calculation for differences between two very small proportions (Fisher's exact test or others)?

2010-11-08 Thread Giulio Di Giovanni
numbers in the 48,000 to 50,000 > ***per arm***. > > > HTH, > > Marc Schwartz > > > On Nov 8, 2010, at 10:16 AM, Mitchell Maltenfort wrote: > > > Not with R, but look for G*Power3, a free tool for power calc, > > includes FIsher's tes

[R] Sample size calculation for differences between two very small proportions (Fisher's exact test or others)?

2010-11-08 Thread Giulio Di Giovanni
Hi, I'm try to compute the minimum sample size needed to have at least an 80% of power, with alpha=0.05. The problem is that empirical proportions are really small: 0.00154 in one case and 0.00234. These are the estimated failure proportion of two medical treatments. Thomas and Conlon (1992)

[R] Identify and extract a whole word of variable length using regular expressions

2010-06-28 Thread Giulio Di Giovanni
Hi everybody, I'm quite weak with regular expression, and I need some help... I have strings of the type >a [1,] "ppe46 Rv3018c MT3098/MT3101 MTV012.32c" [2,] "ppe16 Rv1135c MT1168" [3,] "ppe21 Rv1548c MT1599 MTCY48.17" [4,] "ppe12 Rv0755c MT0779" [5

[R] replace a whole word with sub()

2009-11-13 Thread Giulio Di Giovanni
Dear all, I cannot figure out how to solve a small problem (well, not for me), surely somebody can help me in few seconds. I have a series of strings in a vector X of the type "xxx", "yyy", "zzz", "IgA", "IgG", "kkk", "IgM", "aaa". I want to substitute every ENTIRE string beginning

[R] sm.regression - RGL display without data points?

2009-10-08 Thread Giulio Di Giovanni
Hi, I'm using the sm.regression function from the package sm. Everything works fine, but I'd like to have the the "RGL" display only with the smoothed surface and without the data points displayed. Is there an option to do it? I can reduce their size, using "size" parameter, but I haven

[R] How to extract a specific substring from a string (regular expressions) ? See details inside

2009-09-16 Thread Giulio Di Giovanni
Hi all, I have thousands of strings like these ones: "1159_1; YP_177963; PPE FAMILY PROTEIN" "1100_13; SECRETED L-ALANINE DEHYDROGENASE ALD CAA15575" "1141_24; gi;2894249;emb;CAA17111.1; PROBABLE ISOCITRATE DEHYDROGENASE" and various others.. I'm interested to extract the code fo

[R] help needed with ridge regression and choice of lambda with lm.ridge!!!

2009-06-04 Thread Giulio Di Giovanni
Hi, I'm a beginner in the field, I have to perform the ridge regression with lm.ridge for many datasets, and I wanted to do it in an automatic way. In which way I can automatically choose lambda ? As said, right now I'm using lm.ridge MASS function, which I found quite simple and fast, and I've

[R] Label outliers in boxplot

2008-02-27 Thread Giulio Di Giovanni
Sorry if this is a stupid question, I'm a beginner and I didn't find help in manuals, archives, or web I have a z matrix of this type: a b c d 786-30.s2.gpr 0.2186214 1.3374486 89.37757 9.066358786-31.s1.gpr 1.0931070 1.324588

[R] SOLVED

2007-10-23 Thread Giulio Di Giovanni
sorry it was a stupid question. I have just to compute the estimated velues from the predictor colums and the coefficients and subtract from the observed values... sorry again _ Scarica GRATIS le emoticon della tua squadra del c

[R] Residuals from biglm package

2007-10-23 Thread Giulio Di Giovanni
Hi all, first of all, I'm not an expert on R, I'm still learning, so sorry if this is a stupid question... I have a large dataset that is to big for my computer memory, and I found quite useful the package biglm. Now everything is working perfectly. But if I want the residuals, how I can d