search for: nhgri

Displaying 12 results from an estimated 12 matches for "nhgri".

Did you mean: ngri
2011 Mar 23
3
Compare three or more values?
Is there a less cryptic way to compare three or more values? allTheSame<-c("red","red","red","red") notAllTheSame<-c(132,132,132,999) all.identical <- function(vectorToTest){ cIdentical=sum(vectorToTest %in% vectorToTest[1]) return(cIdentical==length(vectorToTest)) } all.identical(allTheSame) all.identical(notAllTheSame) Thanks in
2012 Feb 08
4
String position character replacement
Hi, Is there a way to efficiently replace specified indices in a string with another character? For example, if I had a vector of strings such as [1] "hellohowareyoudoing" [2] "imgoodhowareyou" [3] "goodandyou" [4] "yesimgoodijusttoldyou" [5] "ohyesthatsright" and had a list of positions that I want to replace with the character "-"
2003 Oct 30
1
Finding common sets
..., I need a FAST way of finding the number of common elements in two groups, as this process will be over all pairs. (The elements in the two groups can be numeric if absolutely necessary, but it would be nice to be general here.) Thanks, Sean -- Clinical Fellow National Institutes of Health NCI/NHGRI -- [[alternative HTML version deleted]]
2009 Aug 08
1
interesting statistics article in NYT
[This email is either empty or too large to be displayed at this time]
2004 Sep 20
2
installing on alpha
...have tried a bunch of ways of modifying this statement, including an explicit path in this statement. I think that did work, but a similar problem then occurred at a later point that I haven't yet located. Has anyone gotten this installation to work on this platform? Alexa J. M. Sorant NIH/NHGRI 333 Cassell Drive Suite 2000 Baltimore, MD 21224 ajms at mail.nih.gov (410) 550-7512 voice (410) 550-7513 fax
2004 Sep 20
2
installing on alpha
...have tried a bunch of ways of modifying this statement, including an explicit path in this statement. I think that did work, but a similar problem then occurred at a later point that I haven't yet located. Has anyone gotten this installation to work on this platform? Alexa J. M. Sorant NIH/NHGRI 333 Cassell Drive Suite 2000 Baltimore, MD 21224 ajms at mail.nih.gov (410) 550-7512 voice (410) 550-7513 fax
2004 Mar 17
6
projection pursuit
Dear helpers Does R have a package that performs projection pursuit density estimation? Or anyone knows code in Matlab or C for example to do this? Thank you all Luis
2009 Sep 15
2
Subsetting matrix with values from vector
Hello, I have a large matrix (data), in which there is a column offerid. The values are numbers (lets say 1:5) There is another vector (idnew), which contains some of the offerids and many more (3:10). I want a subset of the matrix wiith only those rows, which match the criteria of the vector. How can I make it work? Thanks! -- View this message in context:
2004 Jan 01
0
Segmentation fault with data.frame
...exact breakpoint or for a particular list value), segmentation fault occurs. I suppose that I could send individuals the data if that would help. Thanks, Sean -- Sean Davis, M.D., Ph.D. Clinical Fellow Combined Pediatric Hematology/Oncology Fellowship Johns Hopkins/National Institutes of Health NHGRI/NCI -- > str(b[1:20]) List of 20 $ cHsKG501A10: chr "2" $ cHsKG501A11: NULL $ cHsKG501A12: chr "2" $ cHsKG501A2 : chr "16" $ cHsKG501A3 : chr "1" $ cHsKG501A4 : chr "19" $ cHsKG501A5 : chr "3" $ cHsKG501A6 : chr "2"...
2008 Mar 06
2
How to hold a value(Mean sq) with a string
Hi all: Can someone advice me on how to hold the residuals Mean sq value on a string so it can be used in other calculations. I was trying something like this: Msquare<-dfr$Mean sq but fails..Thanks dfr <- read.table(textConnection("percentQ Efficiency 1.565 0.0125 1.94 0.0213 0.876 0.003736 1.027 0.006 1.536 0.0148 1.536 0.0162 2.607 0.02 1.456 0.0157 2.16 0.0103
2004 Feb 17
0
A log on Bayesian statistics, stochastic cost frontier, montecarl o markov chains, bayesian P-values
...its realized value; that is, for which T(y_rep,theta_L)>=T(y,theta_L)..." Does this means that the usual p-value applies? i.e., pv <- 1 - chosen_CDF(parameters)? Can anybody clarify that for me please? Thanks for your help. Jorge -----Original Message----- From: Davis, Sean (NIH/NHGRI) [mailto:sdavis2@mail.nih.gov] Sent: Monday, February 16, 2004 2:42 PM To: 'Icabalceta, Jorge L. ' Subject: RE: [R] How do we obtain Posterior Predictive (Bayesian) P-values in R (a sking a second time) If you have a matrix as you describe with rows corresponding to replicates and column...
2009 Aug 20
1
lattice xyplot strip colors and location
Hi all, I've been trying (unsuccessfully) to modify an xyplot I created using the lattice package. I would like to change default strip colors and locations. I started with numeric data in 4 columns, which look like this: 0.25 2 1 32 0.25 2 2 30 0.25 2 3 27 0.25 2 4 23 0.25 2 5 17 0.25 3 1 30 0.25