[R] Ordering a matrix based on cluster no

2011-06-26 Thread Aparna Sampath
nly first element will be compared. But i want to check for each gene in the 100x100 matrix for its cluster number and then group it. I also tried the order() but it did not help either. Thanks for the help! :) Aparna -- Aparna Sampath Master of Science (Bioinformatics) Nanyang Technologi

Re: [R] Ordering a matrix based on cluster no

2011-06-26 Thread Aparna Sampath
Thanks for the help! But when I tried it, it does not work the same way I want. :( after combining the two matrices, they look like this: V1V2 X TEL.AML1.C41 Hyperdip.50.C23 1 TEL.AML1.C41 1TEL.AML1.C41 1.000 0.

[R] Create simulated data's using mvrnorm

2011-07-06 Thread Aparna Sampath
Hi All This might be something very trivial but I seem to miss something in the syntax or logic which makes me keep wandering around the problem without arriving at a solution. What I want to do is to simulate a sample data for performing cluster analysis. I tried to use x1= mvrnorm(10,rep(0.8,

[R] substituting own test statistics in a built-in function

2012-03-15 Thread Aparna Sampath
Hi All I would like to compute the raw p-value from permutation tests and I found mt.sample.rawp() from the package multtest almost similar to what I want to do. But in the function definition: mt.sample.rawp(V,classlabel,test="t",side="abs",fixed.seed.sampling="y",B=1,na=.mt.naNUM,nonpara="n

Re: [R] substituting own test statistics in a built-in function

2012-03-15 Thread Aparna Sampath
internal functions and say that these set of functions cannot be called by the user. and these functions perform the permutation part, so I need to somehow access them. Regards Ap On Thu, Mar 15, 2012 at 6:40 PM, Sarah Goslee wrote: > Hi, > On Mar 15, 2012 4:28 AM, "Aparna Sampat

[R] how to access values from functions

2012-02-06 Thread Aparna Sampath
)$AICc } Thanks in advance. Regards Ap -- Aparna Sampath Master of Science (Bioinformatics) Nanyang Technological University Mob no : +65 91601854 __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do re

Re: [R] Error message: object of type 'closure' is not subsettable

2012-02-28 Thread Aparna Sampath
Hi All I am trying to use the unlist() in R to a list variable. The following statements are within a function. { denominator <- sqrt(s1 / res.em1$n + s2 / res.em2$n) returnValue <- l2 / (denominator + 11) attr(returnValue,"numerator") <- l2 attr(returnValue,"denominator") <- denominator

Re: [R] Error message: object of type 'closure' is not subsettable

2012-02-28 Thread Aparna Sampath
g > you might try is looking at: > > str(testStatistics["numerator",]) > > is it actually a list? If it is not (most likely given the error) and > it is supposed to be, you need to figure out what aspect of the > generation of it is going awry. > > Cheers, &

Re: [R] Error message: object of type 'closure' is not subsettable

2012-02-28 Thread Aparna Sampath
; > > > On Tue, Feb 28, 2012 at 5:25 PM, Joshua Wiley > wrote: > > > > > Hi Aparna, > > > > > > Can you please post a reproducible example? It is difficult to > > > provide much concrete help without having "testStatistics". One thing > > &g

Re: [R] Error message: object of type 'closure' is not subsettable

2012-03-01 Thread Aparna Sampath
Statistics,alpha.step=0.05,quantile.step=0.01) > > > { > > > numerators <- unlist(testStatistics["numerator",]) > > > denominators <- unlist(testStatistics["denominator",]) > > > } > > > > > > I get my error in t