Displaying 2 results from an estimated 2 matches for "genotype2".
Did you mean:
genotype
2007 Jul 23
1
problems with character objects and calls to list()
...uild a list of the pairs of columns
to.convert <-NULL
for(x in 1:n.loci){
to.convert <- paste(to.convert, paste((2 * x) -1, (2 * x), sep=":"), sep=",")
}
to.convert <- gsub("^,", "", to.convert)
## Then convert to genotype object, but get errors...
genotype2 <- makeGenotypes(genotype, convert=list(to.convert))
Error in makeGenotypes(genotype, convert = list(to.convert)) :
When convert is a list, each element must be a 2-vector.
## I've also tried giving the column names but the data disappears
genotype2 <- makeGenotypes(genotype, convert=c(c...
2008 Nov 09
1
Help on performing multiple chi-square tests
Hi,
I am new to R and I need to perform multiple chi-square tests. I
manage to perform one at a time, but is there a specific command
to do multiple tests?
For example, I have a table that looks like this:
Marker Treatment Genotype1 Genotype2 Genotype3
1 A 23 57 32
1 B 43 59 12
...
...
n A ## ## ##
n B ## ## ##
I can perform an individual chi-square test for marker 1, but if n
is too large (i.e. 4000 markers), I would li...