Re: [R] vectors cross-product V1 x V2

2011-07-09 Thread Hans Werner Borchers
RSiteSearch(cross product) library(pracma) ?cross Speed is usually desired in the context of many similar computations, and is normally achieved in R by vectorizing computation, so storing the large number of 3d vectors together in a structure like a Nx3 matrix so the code can be

Re: [R] Excel export date format

2011-07-09 Thread Duncan Mackay
At 09:31 09/07/2011, you wrote: Hi folks, I have been tormented for some time by Excel's habit of exporting dates to CSV files as mm/dd/ format even if the dates are formatted dd/mm/ in the display. What's worse, if there are dates that are of ambiguous (6/6/2011) and unambiguous

Re: [R] Excel export date format

2011-07-09 Thread Ted Harding
On 09-Jul-11 08:08:56, Duncan Mackay wrote: At 09:31 09/07/2011, you wrote: Hi folks, I have been tormented for some time by Excel's habit of exporting dates to CSV files as mm/dd/ format even if the dates are formatted dd/mm/ in the display. What's worse, if there are dates that are

[R] SpatialPolygonsDataFrame holes problem

2011-07-09 Thread Dan Bebber
I have obtained shapefiles for Indian states from here: http://www.maptell.com/index.php?option=com_remositoryItemid=159func=fileinfofilecatid=115parent=category Problem: I want to extract centroid coordinates for each State, but there is some coding problem with the shapefiles that prevents

Re: [R] Using t tests

2011-07-09 Thread Jim Lemon
On 07/08/2011 07:22 PM, gwanme...@aol.com wrote: Dear Sir, I am doing some work on a population of patients. About half of them are admitted into hospital with albumin levels less than 33. The other half have albumin levels greater than 33, so I stratify them into 2 groups, x and y

Re: [R] Making a new package: licence

2011-07-09 Thread Prof Brian Ripley
Because the common FOSS licenses are installed with R, CRAN asks you to refer to those copies not distribute your own. See 'Writing R Extensions'. I agree that most R packages are lacking copyright statements (which is a separate issue, and whose purpose varies by jurisdiction: provided

Re: [R] problem to set CRAN mirror

2011-07-09 Thread Md Mahmudul Haque
Thanks Jim and Prof Ripley i believe, the problem with my internet connection, Coz i tried all the method found in internet to solve the problem, like proxy setting, set internet true, etc..intially problem was unable to connect, then after setting proxy it became 407 authentication

[R] Using str() in a function.

2011-07-09 Thread andrewH
Using str() in a function. I am in the early phase of learning R, and I find I spend a lot of time trying to figure out what is actually in objects I have created or read in from a file. I'm trying to make a simple little function to display a couple of things about a object, let's say the

Re: [R] Excel export date format

2011-07-09 Thread Jim Lemon
On 07/09/2011 06:26 PM, (Ted Harding) wrote: ... I would not dare to suggest the above exchange for inclusion in the Fortunes package. Fortunes are supposed to bring us joy. But there is perhaps scope for a package Misfortunes. Then, when things are not going well, one can enter

[R] Storing and managing custom R functions for re-use

2011-07-09 Thread Simon Chamaillé-Jammes
Dear all, sorry if this is a bit on the sidetrack for R-help. As a regular R user I have developed quite a lot of custom R functions, to the point of not always remembering what I have already programmed, where the file is and so on. I was wondering what other people do in this regards. A

Re: [R] R-help Digest, Vol 101, Issue 9

2011-07-09 Thread mihalicza . peter
Július 7-től 14-ig irodán kívül vagyok, és az emailjeimet nem érem el. Sürgős esetben kérem forduljon Kárpáti Edithez (karpati.e...@gyemszi.hu). Üdvözlettel, Mihalicza Péter I will be out of the office from 7 July till 14 July with no access to my emails. In urgent cases please contact Ms.

[R] Meta-analysis with zero values for mean and sd

2011-07-09 Thread Rosana Ferrero
Hi! I want to do a meta-analysis with count data for treatement/control cases. Mi problem is that I need to use zero values (an informative value) for the mean and standard deviation for one of the treatement, but R has a problem: Studies with zero values for sd.e or sd.c get no weight in

[R] Meta-analysis with zero values for mean and sd. Continuous data.

2011-07-09 Thread Rosana Ferrero
Hi, I want to do a meta-analysis with count data for treatement/control cases. Mi problem is that I need to use zero values (an informative zero value) for the mean and standard deviation for one of the treatement, but R has a problem: Studies with zero values for sd.e or sd.c get no weight in

[R] Meta-analysis with zero values for mean and sd. Continuous data.

2011-07-09 Thread aletheia
Hi! I want to do a meta-analysis with count data for treatement/control cases. Mi problem is that I need to use zero values (an informative value) for the mean and standard deviation for one of the treatement, but R has a problem: Studies with zero values for sd.e or sd.c get no weight in

Re: [R] Excel export date format

2011-07-09 Thread Gabor Grothendieck
On Fri, Jul 8, 2011 at 7:31 PM, Jim Lemon j...@bitwrit.com.au wrote: Hi folks, I have been tormented for some time by Excel's habit of exporting dates to CSV files as mm/dd/ format even if the dates are formatted dd/mm/ in the display. What's worse, if there are dates that are of

Re: [R] lattice: How to vertically adjust an axis label?

2011-07-09 Thread Marius Hofert
Dear David, thanks for the hint, I completely forgot about phantom(). With that, I can solve the problem: library(lattice) xyplot(0~0, xlim=c(0,3), scales=list(x=list(at=c(1,1.1), labels=c(expression(hat(theta)[italic(n)]),

Re: [R] Storing and managing custom R functions for re-use

2011-07-09 Thread Abhijit Dasgupta, PhD
I think most of us are in a similar situation. I've usually kept mine in a file which is sourced when I start R. The main problem I have with this is that it clutters up my environment with a lot of stuff I don't need all the time. I'm in the process of creating a custom package which will be

Re: [R] manipulating by lists and ave() functions

2011-07-09 Thread Berry Boessenkool
Maybe I'm missing something, but in what package do I find that function? simplify2array(b) Fehler: konnte Funktion simplify2array nicht finden # Function wasn't found help.search(simplify2array) No help files found with alias or concept or title matching ‘simplify2array’ using fuzzy

Re: [R] Using str() in a function.

2011-07-09 Thread David Winsemius
On Jul 9, 2011, at 4:20 AM, andrewH wrote: Using str() in a function. I am in the early phase of learning R, and I find I spend a lot of time trying to figure out what is actually in objects I have created or read in from a file. I'm trying to make a simple little function to display a

Re: [R] Using str() in a function.

2011-07-09 Thread Dennis Murphy
Hi: Is this what you're after? testX - function(X) { print(summary(X)) print(str(X)) invisible() # returns nothing } testX(1:10) Min. 1st Qu. MedianMean 3rd Qu.Max. 1.003.255.505.507.75 10.00 int [1:10] 1 2 3 4 5 6 7 8 9 10 NULL See inline..

[R] Suppressing the labelling of tick marks on ggplot2

2011-07-09 Thread Christopher Desjardins
Hi, I have the follow ggplot2 code I am running: ggplot(data=bb.res.math,aes(x=factor(id.bb),y=bb.math.comb,fill=BB)) + geom_bar() + facet_grid(BB~.) + scale_fill_brewer(pal=Set1) + ylab(Average Student Residual (Math)) + xlab(Student ID) The number of unique id.bb is 2207 and so my X-axis has

Re: [R] Storing and managing custom R functions for re-use

2011-07-09 Thread Barry Rowlingson
On Sat, Jul 9, 2011 at 2:37 PM, Abhijit Dasgupta, PhD aikidasgu...@gmail.com wrote: I think most of us are in a similar situation. I've usually kept mine in a file which is sourced when I start R. The main problem I have with this is that it clutters up my environment with a lot of stuff I

Re: [R] Plotmath expressions: How to vertically adjust an axis label?

2011-07-09 Thread David Winsemius
On Jul 9, 2011, at 9:07 AM, Marius Hofert wrote: Dear David, thanks for the hint, I completely forgot about phantom(). With that, I can solve the problem: library(lattice) xyplot(0~0, xlim=c(0,3), scales=list(x=list(at=c(1,1.1),

Re: [R] manipulating by lists and ave() functions

2011-07-09 Thread David Winsemius
On Jul 9, 2011, at 9:44 AM, Berry Boessenkool wrote: Maybe I'm missing something, but in what package do I find that function? simplify2array(b) Fehler: konnte Funktion simplify2array nicht finden # Function wasn't found help.search(simplify2array) No help files found with alias or

Re: [R] Referencing a vector of data labels in ggplot function

2011-07-09 Thread Hadley Wickham
Maybe something like this? withNames - function(dframe, lineNames, plotName, colors){ one_day - subset(dframe, data == '1941-06-16') one_day$lineNames - lineNames ggplot(dframe, aes(date, value, group = factor, color = factor)) + geom_line(size = 1) + facet_grid(Facet~., scales =

[R] ASCII values to Decimal

2011-07-09 Thread Bansal, Vikas
Dear all, I have a file that is summary.txt(I have attached it) .we can read this file using- dfa=read.table(summar.txt,fill=T,colClasses = character,header=T) In V10 column I have ASCII values which I want to convert into decimal numbers - my data frame(dfa) which is like- V7 V8

Re: [R] ASCII values to Decimal

2011-07-09 Thread jim holtman
Try this: str(x) 'data.frame': 111 obs. of 5 variables: $ V7 : int 0 0 0 0 0 0 0 0 0 0 ... $ V8 : int 1 1 1 1 1 1 1 1 1 1 ... $ V9 : chr G T C A ... $ V10 : chr ` a a a ... $ value: chr 96 97 97 97 ... x$value - sapply(x$V10, function(a) paste(as.integer(charToRaw(a)),

Re: [R] manipulating by lists and ave() functions

2011-07-09 Thread Joshua Wiley
On Sat, Jul 9, 2011 at 7:32 AM, David Winsemius dwinsem...@comcast.net wrote: On Jul 9, 2011, at 9:44 AM, Berry Boessenkool wrote: Maybe I'm missing something, but in what package do I find that function? simplify2array(b) Fehler: konnte Funktion simplify2array nicht finden # Function

Re: [R] Suppressing the labelling of tick marks on ggplot2

2011-07-09 Thread Joshua Wiley
Hi Chris, You can use scale_x_discrete() to manually set the locations of the ticks (the breaks argument) and what they are labeled with (the labels argument). If you want a third of the the ids (or so) you could do something like: breaks = factor(bb.res.math$id.bb)[seq(1,

Re: [R] Visualizing a dissimilarity matrix in Euclidean space

2011-07-09 Thread Corey Sparks
Hi, I've playd with this kind of problem before, have yoiu looked at principal coordinates? You can use the cmdscale() function in R to take the eigenstructure of your distance matrix and plot the differences in low dimensional space, it can be very instructive as to the dissimilarity between your

Re: [R] Storing and managing custom R functions for re-use

2011-07-09 Thread Tyler Rinker
I personally place functions like this in my .First function under the .Rprofile, making them instantly accessible. I also keep a function called my.fun() which lists a data frame containing a column of all the function names, one for arguments, and a brief description. This also goes in

Re: [R] Polynomial fitting

2011-07-09 Thread Berry Boessenkool
Hey Matti, lm() _is_ a least square approximation. Did you notivce in the poly-help you'll probably need to set raw=TRUE ? Helped me a lot once I figured that one out... check this: a - c(-5:10)  ;  b - 5*a^3 + 2*a^2 - 7*a + 3  + rnorm(15, 0, 100) data.frame(a,b) modell - lm(b ~  poly(a,3,

[R] PERMANOVA+ and adonis in vegan package

2011-07-09 Thread VG
Hi, I was wondering if someone can tell me what is the difference between strata argument (function adonis in vegan package) and using random effects in PERMANOVA+ add-on package to PRIMER6 when doing permutational MANOVA-s? Is the way permutations are done the same? Thank you very much in

Re: [R] Tom Short's R cheat sheet

2011-07-09 Thread Uwe Ligges
On 08.07.2011 21:07, Gene Leynes wrote: I noticed that there is a newer version of Tom Short's cheat sheet than the version currently posted on CRAN. Personally I like the newer version, but maybe keeping the old version is deliberate. Anyway, I was wondering if there's someone that I can

Re: [R] For column values-Quality control

2011-07-09 Thread Bansal, Vikas
Dear sir, I was doing with different code that is why u did not get output which I was saying.Please use this code on summary file- I have a file that is summary.txt(I have attached it) .we can read this file using- dfa=read.table(summar.txt,fill=T,colClasses = character,header=T) In V10

Re: [R] Getting wrong NA values using for cmd

2011-07-09 Thread Uwe Ligges
On 08.07.2011 18:20, VictorDelgado wrote: ty S. Goslee, It's helpfull to test the condition: all.equal(s[4],0.15) [1] TRUE instead the previous FALSE answer obtained with s[4]==0.15 [1] FALSE but I still need get it to vector r: Victor Delgado wrote: for (w in 1:length(s)){ r[w]-

Re: [R] Condional Density Plot from different data

2011-07-09 Thread Uwe Ligges
On 08.07.2011 18:54, rstudent wrote: Tried this Tried what? Nothing cited Please cite the original examples and answers so that we can follow up. Best, Uwe Ligges and received this error: Error in hist.default(x = integer(0), plot = FALSE) : invalid number of 'breaks' --

Re: [R] Meta-analysis with zero values for mean and sd. Continuous data.

2011-07-09 Thread Uwe Ligges
On 09.07.2011 13:14, aletheia wrote: Hi! I want to do a meta-analysis with count data for treatement/control cases. Mi problem is that I need to use zero values (an informative value) for the mean and standard deviation for one of the treatement, but R has a problem: Studies with zero values

Re: [R] ASCII values to Decimal

2011-07-09 Thread Prof Brian Ripley
And what is the mapping from ascii characters to decimal numbers that you seek? One possible answer is to use utf8ToInt, but it is only one answer. sapply(c('`', 'a', '_', 'Z', '^', '\\'), utf8ToInt) ` a _ Z ^ \\ 96 97 95 90 94 92 On Sat, 9 Jul 2011, Bansal, Vikas wrote: Dear all,

Re: [R] SpatialPolygonsDataFrame holes problem

2011-07-09 Thread Roger Bivand
On Sat, 9 Jul 2011, Dan Bebber wrote: I have obtained shapefiles for Indian states from here: http://www.maptell.com/index.php?option=com_remositoryItemid=159func=fileinfofilecatid=115parent=category Problem: I want to extract centroid coordinates for each State, but there is some coding

Re: [R] ASCII values to Decimal

2011-07-09 Thread Bansal, Vikas
I used this code by Jim Holtman (Thanks to him)and it is working perfectly. dfa$value - sapply(dfa$V10, function(a) paste(as.integer(charToRaw(a)), collapse = ' ')) Thanking you, Warm Regards Vikas Bansal Msc Bioinformatics Kings College London From:

Re: [R] Basic vector logic not working

2011-07-09 Thread Pete Brecknock
DimmestLemming wrote: I am interning in a computer science lab and I'm very new to R. The language basics are clear, but this particular problem isn't: I have a very large dataframe called data which holds data from Halo matches. I'm trying to analyze a certain window such that

Re: [R] Return Level in ismev

2011-07-09 Thread Peter Maclean
Is is possible to recover the return levels and intervals (as reported in a turn level plot) at a given confidence interval? See a repducible example. #Grouped vector n - data.frame(n = rep(c(1:3), each = 10)) y = rgamma(30, shape=0.5, rate = 1, scale = 10) require(plyr) require(ismev)

Re: [R] For column values-Quality control

2011-07-09 Thread David Winsemius
On Jul 9, 2011, at 12:45 PM, Bansal, Vikas wrote: Dear sir, I was doing with different code that is why u did not get output which I was saying.Please use this code on summary file- I have a file that is summary.txt(I have attached it) .we can read this file using-

Re: [R] Basic vector logic not working

2011-07-09 Thread Bert Gunter
On Sat, Jul 9, 2011 at 12:08 PM, Pete Brecknock peter.breckn...@bp.com wrote: DimmestLemming wrote: I am interning in a computer science lab and I'm very new to R. The language basics are clear, but this particular problem isn't: I have a very large dataframe called data which holds data

Re: [R] For column values-Quality control

2011-07-09 Thread David Winsemius
On Jul 9, 2011, at 4:38 PM, David Winsemius wrote: On Jul 9, 2011, at 12:45 PM, Bansal, Vikas wrote: Dear sir, I was doing with different code that is why u did not get output which I was saying.Please use this code on summary file- I have a file that is summary.txt(I have attached it)

[R] Eliminate level information

2011-07-09 Thread darrelkj
Hi, I hope this formatting is correct as it is my first time. I am trying to do comparisons of values in a data frame that has some factor variables. One instance is train$sex[2] [1] Male Levels: Female Male So the value is Male but a comparison like Male == train$sex[2] will always return

Re: [R] Polynomial fitting

2011-07-09 Thread Matti Jokipii
Oh yes! raw=T did the trick. I even tried raw=T while i was still trying to dig up the coeffs directly from poly. It didn't cross my mind after i learned about fit- lm( y ~ poly( x, k)) from Gerrit, and i jumped into my own false conclusions. Good of you to guess that was my problem. Now the

[R] Confusing piece of R code

2011-07-09 Thread Bazman76
m0-epxression((4*theta1*theta2-theta3^2)/(2*x*theta3^2)-0.5*theta1*x) params-all.vars(m0) this reads all the params from m0 so theta1,2 and 3 correct? params-params[-which(params==x)] checks which params are multiplied by x? np-length(params)

Re: [R] Eliminate level information

2011-07-09 Thread Sarah Goslee
There's something you're not telling us. How did you get your data into R? what does str(train) show? (see inline) On Sat, Jul 9, 2011 at 3:38 PM, darrelkj darre...@mail.uc.edu wrote: Hi, I hope this formatting is correct as it is my first time. I am trying to do comparisons of values in a

Re: [R] Confusing piece of R code

2011-07-09 Thread B77S
Have you looked at the manual for any of these? ?get ?sprintf ?assign #and so on... ? Bazman76 wrote: m0-epxression((4*theta1*theta2-theta3^2)/(2*x*theta3^2)-0.5*theta1*x) params-all.vars(m0) this reads all the params from m0 so theta1,2 and 3 correct?

Re: [R] Confusing piece of R code

2011-07-09 Thread Sarah Goslee
The neat thing about R is that it's interpreted, so you can look for yourself. On Sat, Jul 9, 2011 at 3:46 PM, Bazman76 h_a_patie...@hotmail.com wrote: m0-epxression((4*theta1*theta2-theta3^2)/(2*x*theta3^2)-0.5*theta1*x) params-all.vars(m0)                              this reads all the

Re: [R] Confusing piece of R code

2011-07-09 Thread Bazman76
thanks sarah -- View this message in context: http://r.789695.n4.nabble.com/Confusing-piece-of-R-code-tp3656660p3656898.html Sent from the R help mailing list archive at Nabble.com. __ R-help@r-project.org mailing list

[R] Basic vector logic not working

2011-07-09 Thread DimmestLemming
I am interning in a computer science lab and I'm very new to R. The language basics are clear, but this particular problem isn't: I have a very large dataframe called data which holds data from Halo matches. I'm trying to analyze a certain window such that data$deaths20 and data$deaths=27. When

Re: [R] Basic vector logic not working

2011-07-09 Thread Daniel Nordlund
-Original Message- From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] On Behalf Of DimmestLemming Sent: Saturday, July 09, 2011 10:31 AM To: r-help@r-project.org Subject: [R] Basic vector logic not working I am interning in a computer science lab and I'm very

Re: [R] Meta-analysis with zero values for mean and sd

2011-07-09 Thread Jim Lemon
On 07/09/2011 08:16 PM, Rosana Ferrero wrote: Hi! I want to do a meta-analysis with count data for treatement/control cases. Mi problem is that I need to use zero values (an informative value) for the mean and standard deviation for one of the treatement, but R has a problem: Studies with zero

Re: [R] Storing and managing custom R functions for re-use

2011-07-09 Thread Jim Lemon
On 07/09/2011 09:30 PM, Simon Chamaillé-Jammes wrote: Dear all, sorry if this is a bit on the sidetrack for R-help. As a regular R user I have developed quite a lot of custom R functions, to the point of not always remembering what I have already programmed, where the file is and so on. I was

Re: [R] Storing and managing custom R functions for re-use

2011-07-09 Thread Duncan Murdoch
On 11-07-09 7:30 AM, Simon Chamaillé-Jammes wrote: Dear all, sorry if this is a bit on the sidetrack for R-help. As a regular R user I have developed quite a lot of custom R functions, to the point of not always remembering what I have already programmed, where the file is and so on. You

Re: [R] Delete row takes ages. alternative?!

2011-07-09 Thread David Winsemius
On Jul 9, 2011, at 7:02 PM, sven wrote: Hello, I am a student from Liverpool UK, working with some genetic data using R. I got a data.frame with about 250.000 rows and using a for loop to delete certain rows using the following code: x - is a data.frame x = x[-5,] --- deletes row 5

[R] Delete row takes ages. alternative?!

2011-07-09 Thread sven
Hello, I am a student from Liverpool UK, working with some genetic data using R. I got a data.frame with about 250.000 rows and using a for loop to delete certain rows using the following code: x - is a data.frame x = x[-5,] --- deletes row 5 x = x[-10,] --- delets row 10 x = x[-i,] --

[R] OpenOffice ods spreadsheets in R?

2011-07-09 Thread Martin Rittner
I would like to open OpenOffice (LibreOffice) .ods files in R. I've tried the ROpenOffice package from omegahat, but unfortunately, the read.ods() function attempts to use the values of the first column in a worksheet as row names, and thus does not allow duplicates in there (which, even more

Re: [R] OpenOffice ods spreadsheets in R?

2011-07-09 Thread Richard M. Heiberger
Martin, Look at ROOo on rcom.univie.ac.at It is near the bottom of the Download page. Rich On Sat, Jul 9, 2011 at 8:49 PM, Martin Rittner k...@thegeologician.netwrote: I would like to open OpenOffice (LibreOffice) .ods files in R. I've tried the ROpenOffice package from omegahat, but

Re: [R] OpenOffice ods spreadsheets in R?

2011-07-09 Thread Ista Zahn
Just export to a plain text format. I know it's somehow not very satisfying, but really it's the easiest thing to do. Best, Ista On Sat, Jul 9, 2011 at 8:49 PM, Martin Rittner k...@thegeologician.net wrote: I would like to open OpenOffice (LibreOffice) .ods files in R. I've tried the

Re: [R] OpenOffice ods spreadsheets in R?

2011-07-09 Thread David Winsemius
On Jul 9, 2011, at 8:49 PM, Martin Rittner wrote: I would like to open OpenOffice (LibreOffice) .ods files in R. I've tried the ROpenOffice package from omegahat, but unfortunately, the read.ods() function attempts to use the values of the first column in a worksheet as row names, and

Re: [R] Delete row takes ages. alternative?!

2011-07-09 Thread Rolf Turner
On 10/07/11 12:12, David Winsemius wrote: SNIP Uhhh, you meant drpidx - -c(5,10, i) x - x[-drpidx, ] cheers, Rolf Turner __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting

Re: [R] Simulating from the null distribution of a 2 x 3 table

2011-07-09 Thread Jim Silverton
Thanks for all your help thus far. My final question is this, if I want to simulate all the 2 x 3 tables (with column totals and row totals fixed), how do I do this using r2dtable(), and find the one that gives me the smallest fisher's exact test. Will r2table() generate unique tables everytime

Re: [R] Delete row takes ages. alternative?!

2011-07-09 Thread David Winsemius
On Jul 9, 2011, at 9:37 PM, Rolf Turner wrote: On 10/07/11 12:12, David Winsemius wrote: SNIP Uhhh, you meant drpidx - -c(5,10, i) x - x[-drpidx, ] Yes, I certainly did. Thanks for the correction. cheers, Rolf Turner David Winsemius, MD West Hartford, CT

[R] grey colored lines and overwriting labels i qqplot2

2011-07-09 Thread Sigrid
I created this graph in ggplot and added ablines to the different facets by specifying with subset commands. As you might see, there are still a few issues. 1.) I would like to have the diamonds in a grey scale instead of colors. I accomplished this (see graph 2) until I overwrote the label

Re: [R] changing graphs in qqplot2

2011-07-09 Thread Sigrid
Great. Thank you for your suggestions. In case other people are interested too, this is what I got now. I was able to #added labels for x-axis and y-axis p + scale_y_continuous(number of votes) p + scale_x_continuous(number of votes) # specify breaks p + scale_x_continuous(breaks=1:4)

[R] Odds Ratio for evaluating Diagnostic tests

2011-07-09 Thread Manoj Aravind
Hi friends, I have a doubt reg the application of odds ratio. When evaluating a diagnostic test, what odds ratio I should apply? When I use.. *oddsratio (X)** * the OR I get is not ad/bc. Thank you. Regards, Dr Manoj Aravind, PG Resident, Dept of Community Medicine, Osmania Medical College,

Re: [R] Delete row takes ages. alternative?!

2011-07-09 Thread David Winsemius
On Jul 9, 2011, at 11:42 PM, David Winsemius wrote: On Jul 9, 2011, at 9:37 PM, Rolf Turner wrote: On 10/07/11 12:12, David Winsemius wrote: SNIP Uhhh, you meant drpidx - -c(5,10, i) x - x[-drpidx, ] Yes, I certainly did. Thanks for the correction. A little bird has tweeted that I

Re: [R] grey colored lines and overwriting labels i qqplot2

2011-07-09 Thread Ista Zahn
Please give a reproducible example. Since we do not have the test data we cannot run your code. One way you might do this is by posting the output of dput(test) Best, Ista On Sat, Jul 9, 2011 at 11:24 PM, Sigrid s.stene...@gmail.com wrote: I created this graph in ggplot and added ablines to the

Re: [R] Odds Ratio for evaluating Diagnostic tests

2011-07-09 Thread David Winsemius
On Jul 10, 2011, at 12:55 AM, Manoj Aravind wrote: Hi friends, I have a doubt reg the application of odds ratio. When evaluating a diagnostic test, what odds ratio I should apply? When I use.. *oddsratio (X)** * the OR I get is not ad/bc. PLEASE do read the posting guide