[R] SNPassoc

2010-04-13 Thread Euphoria
Hi guys! I am trying to run an interaction analysis between two SNPs using the SNPassoc package. I keep getting the following two errors: Error: switch Error: y value must be 0 <=y <= 1 Here is my code: myData <-setupSNP (data=InterAll, colSNPs=10:11, sep="") ansCod<-interactionPval(log(ALL)~A

Re: [R] "too many arguments" error

2010-03-29 Thread Euphoria
that was way too simple (and completely dumb on my part!) Thanks! =) -- View this message in context: http://n4.nabble.com/too-many-arguments-error-tp1695431p1695461.html Sent from the R help mailing list archive at Nabble.com. __ R-help@r-project.or

[R] "too many arguments" error

2010-03-29 Thread Euphoria
Hi all! I keep getting the "too many arguments" error when I insert the xaxt="n", axis(1, at=seq (0, 183, 365, 549, 732, 915, 1095)) statement in the code below for a survival plot. How can I go around this issue? Is there another way for me to change the x-axis? Also, I would prefer the y-a

Re: [R] 1 - Survival Plot

2010-03-26 Thread Euphoria
Thanks for the responses guys! It worked like a charm! =) -- View this message in context: http://n4.nabble.com/1-Survival-Plot-tp1691512p1692516.html Sent from the R help mailing list archive at Nabble.com. __ R-help@r-project.org mailing list https:

[R] 1 - Survival Plot

2010-03-25 Thread Euphoria
Hi all! I have created survival vs. time plots. Now I would like to plot (1 - Survival) vs. time. Is there a way for me to retrieve the survival estimate information, to which I can manually make an adjustment (ie; failure = 1 - survival) before I re-plot this information? Here is the code I use

Re: [R] R error- "more columns than column names"

2010-02-24 Thread Euphoria
Thanks to all who posted. After trying all of the above-listed options - the error is still popping up, but here is some progress: 1) I can read in the file just fine when I use the read.table statement and specify it as a tab delimited file using the code: two <- read.table("Z:/CCFPhenotypesTAB

[R] R error- "more columns than column names"

2010-02-24 Thread Euphoria
Hi all! I am desperately trying to figure out the solution to this error, but nothing as of yet is working. As noted in an earlier post I am using GenABEL. In an attempt to read in the phenotype file, in the format .dat, R keeps giving me the error "more columns than column names" I have trie

[R] GenABEL - problems with load.gwaa.data

2010-02-24 Thread Euphoria
Hi all! I am using GenABEL on R for GWAS analysis. I am having a couple of issues: First, I am having a problem reading files (.map, & .ped, size 900Mb, using windows 32-bit) onto R in the "convert.snp.ped" statement. I am thinking this problem is likely due to the large size of the files & my