Displaying 5 results from an estimated 5 matches for "self_t1d".
2011 Oct 27
2
help with parallel processing code
...protein comb', 'AUC')
pdf('ROC Charts-3plex.pdf')
#generate combinations
pc3 = combinations(n=length(mols),r=3)
#runing the combinations
for (len in 1:dim(pc3)[1])
{
prs = pc3[len,]
## new data mat
samples <- mols[prs]
mat <-data [,c(samples,'Self_T1D')]
mat<-mat[complete.cases(mat),]
##### LDA #########
rows<- c(1:nrow(mat))
scores <- c()
labels <-c()
for (itr in 1:1000)
{
train <- sample(rows, length(rows)-1)
label =0 ; if (mat$Self_T1D[-train] == "N") label = 1 #need the value for
this line, should it...
2011 Apr 13
1
error for ttest
...data as per Dennis's suggestion in this post
http://www.mail-archive.com/r-help at r-project.org/msg107156.html.
the posted code works fine but when I try to apply it to my data, i get ">
u2 <- ddply(xxm, .(plateid, cytokine), as.data.frame.function(f))
Error in t.test.formula(conc ~ Self_T1D, data = df, na.rm = T) :
grouping factor must have exactly 2 levels".
Self_T1D has two levels "N" and "Y"
I have used the ddply function to do the mean and sd for the same dataframe
without any issues.
I would appreciate help to solve this.
Thanks
Sharad
--
View this m...
2009 Aug 28
1
extracting pvalues from ttest
...edu.au/R/e6/help/09/04/11438.html#options2 and I
used the suggestion provided by Jorge with modifications to my data
do.call(c,lapply(your_list_with_the_t_tests,function(x) x$p.value))
but I am getting the following error after excuting the code
B<-by(eo,eo$PlateID, function(.sub) t.test(mcp1~Self_T1D,data=.sub,
na.rm=T)) #ttest platewise
do.call(c,lapply(B, function(x) x$p.value))
Error in do.call(c, lapply(B, function(x) x$p.value)) :
'what' must be a character string or a function
here "B" is equal to "your_list_with_the_t_tests. is something i am doing
wrong
>...
2009 Jul 17
3
dot plot with several points for 2 categories
I'm trying to wean myself off the very limited capabilities of Excel and Oo.
Currently, I am trying to make a plot showing several values for 2
categories in a dot blot (see
http://www.nabble.com/file/p24538360/Picture%2B1.png Picture+1.png except
that the x axis should contain the category not a number, which was the only
way to coax Excel into displaying a plot like this). I started
2009 Jul 29
3
Newbie in R: Reading .txt files and storing the 'numbers' in a vector
Hello everybody,
I'm a newbie in R and just went through an introduction class recently.
Here's my problem.
I have 2 text files (.txt) with plain numbers ('doubles' for those who
know c++) ordered into 2 columns as below:
coordinate1 value1
coordinate2 value2
coordinate3 value3
... ...
coordinateN valueN
I would like to write a small programme in which i would:
1. take