Re: [R] How to test a difference in ratios of count data in R

2016-09-30 Thread Shuhua Zhan
tember 28, 2016 4:54:46 PM To: Shuhua Zhan Cc: r-help@R-project.org; Greg Snow Subject: Re: [R] How to test a difference in ratios of count data in R > On Sep 28, 2016, at 9:49 AM, Greg Snow <538...@gmail.com> wrote: > > There are multiple ways of doing this, but here are a couple. &g

[R] How to test a difference in ratios of count data in R

2016-09-27 Thread Shuhua Zhan
Hello R-experts, I am interested to determine if the ratio of counts from two groups differ across two distinct treatments. For example, we have three replicates of treatment A, and three replicates of treatment B. For each treatment, we have counts X from one group and counts Y from another gro

[R] add a list name into the list content in a new output

2015-01-19 Thread Shuhua Zhan
Dear All, I'd like to add a list name into the list contents to make a new output. The list is a list of data.frame derived from summary command in Rqtl. I want to add this list name to the data frame with a given column name such as "trait" and output this entire list as a table tab delimited a

Re: [R] how to skip a specific value when using apply() function to a matrix?

2010-07-16 Thread Shuhua Zhan
Hello Joshua and Wu, Thank you for your excellent solutions. Joshua - Original Message - From: "Joshua Wiley" To: "Shuhua Zhan" Cc: r-help@r-project.org Sent: Friday, July 16, 2010 12:39:22 PM GMT -05:00 US/Canada Eastern Subject: Re: [R] how to skip a specific va

Re: [R] how to skip a specific value when using apply() function to a matrix?

2010-07-16 Thread Shuhua Zhan
6 0.5872202 1.9008870 1.5474546 1.7565336 0.5661385 -0.9561829 1.1296201 [6,] -0.8068715 1.4680505 -0.7942062 0.9225210 -0.7331431 1.2455047 0.7071068 -0.3227486 Joshua - Original Message - From: "Shuhua Zhan" To: r-help@r-project.org Sent: Thursday, July 15, 2010 11:08:3

[R] how to skip a specific value when using apply() function to a matrix?

2010-07-15 Thread Shuhua Zhan
Hello R experts, I'd like to studentize a matrix (tmp1) by column using apply() function and skip some specific values such as zeros in the example below to tmp2 but not tmp3. I used the script below and only can get a matrix tmp3. Could you please help me to studentize the matrix (tmp1) without

Re: [R] why does sample(x, n) give the same n items in every separate runs?

2008-10-31 Thread Shuhua Zhan
ome R packges to process that expression data which set the seed on the Random Number Generator to a fixed value. Thanks again, Joshua - Original Message - From: "Charles C. Berry" <[EMAIL PROTECTED]> To: "Shuhua Zhan" <[EMAIL PROTECTED]> Cc: r-help@r-project.org

[R] why does sample(x, n) give the same n items in every separate runs?

2008-10-30 Thread Shuhua Zhan
Hello R users, I have gene expression data of two groups of genes (large and small). Gene expression intensities of those genes are classified into 1 to 10 levels. What I want is to make a random set of genes that have the same levels as the small group from large group using sample(). I used s

[R] modified ks.test?

2008-07-11 Thread Shuhua Zhan
Hello, I am wondering if a modified KS (Kolmogrov-Smirnov) test is availabe in R, which can calculate the correct p value with ties for the data that have discrete distribution. Joshua __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/