Displaying 20 results from an estimated 300 matches similar to: "pairwise correlations for large dataset"
2013 Mar 22
3
Distance calculation
Hi Elisa,
I hope this is what you wanted.
dat1<-read.csv("peaks.csv",sep=",")
#Subset
dat2<-dat1[1:5,]
res1<-do.call(cbind,lapply(seq_len(nrow(dat2)),function(i) do.call(rbind,lapply(split(rbind(dat2[i,],dat2[-i,]),1:nrow(rbind(dat2[i,],dat2[-i,]))), function(x) {x1<-rbind(dat2[i,],x);
2005 Feb 15
1
matlab norm(h) command in R: sqrt(sum(h^2)) - use in an expression
Hi
in matlab I defined a function (double gamma, parameters at the end of
this mail) as
h(i)=((t/d1)^a1)*exp(-(t-d1)/b1)-c*((t/d2)^a2)*exp(-(t-d2)/b2);
h=h/norm(h);
I do know that norm() in matlab is equal to:
sqrt(sum(x^2))
in R
so in R I do it like:
#function (double gamama)
h <- expression((t/d1)^a1*exp(-(t-d1)/b1)-c*(t/d2)^a2*exp(-(t-d2)/b2))
# plot it
t <- seq(0, 20000,
2007 Oct 13
2
How to identify the two largest peaks in a trimodal distribution
Hello all
I'm trying to do a simulation that involves identifying the minimum
point between two peaks of a (usually) bimodal distribution. I can do
this easily if there are only two peaks:
CnBdens<-density(Ys/Xs) #probability density function for ratio of Ys
to Xs
for(p in 1:512) ifelse(CnBdens$y[p]>CnBdens$y[p-1],peak1<-p,break)
#identifies first peak in probability
2005 Feb 15
0
matlab norm(h) command in R: sqrt(sum(h^2)) - use in an e xpression
> From: Christoph Lehmann
>
> Hi
>
> in matlab I defined a function (double gamma, parameters at
> the end of
> this mail) as
> h(i)=((t/d1)^a1)*exp(-(t-d1)/b1)-c*((t/d2)^a2)*exp(-(t-d2)/b2);
> h=h/norm(h);
>
> I do know that norm() in matlab is equal to:
>
> sqrt(sum(x^2))
> in R
> so in R I do it like:
>
> #function (double
2005 Dec 03
1
Correlation matrix from a vector of pairwise correlations
I've a vector of pairwise correlations in the order low-index element
precedes the high-index element, say:
corr(1,2)=0.1, corr(1,3)=0.2, corr(2,3)=0.3, corr(3,4)=0.4
How can I construct the corresponding correlation matrix?
I tried using the "combn"-function in "combinat" package:
library(combinat)
combn(c(0.1,0.2,0.3,0.4),2)
, but to no avail...
Thank you for your
2011 Aug 26
0
Multiply Iterated Measurements and Pairwise Comparison
I am familiar with pairwise t-tests, corrections for multiple testing, etc. however I have a problem whose answer I have not found after extensive R-help archive and Google searching.
What I have done in the past:
I have N items which are measured, exposed to a condition, and then measured again. I wish to know if the condition changes the items so I can perform a t-test. Better yet I can
2013 Jan 29
0
svy equivalent of pairwise.t.test
Dear all,
I am looking for an equivalent of the pairwise.t.test() function using a
complex survey design. Any suggestions on this or how to account for
weights using the pairwise.t.test itself? Thanks, V
[[alternative HTML version deleted]]
2013 Apr 12
0
pairwise ANOSIM test
An embedded and charset-unspecified text was scrubbed...
Name: ?????? ?? ????????.
URL: <https://stat.ethz.ch/pipermail/r-help/attachments/20130412/7bbdecd1/attachment.pl>
2003 Jun 17
1
How to generate a pairwise non-parametric comparison table?
Dear list
I am comparing the results of several different experimental setups. With kruskal.test() I can test if there is any difference at all in any of them, if I understand it correctly. But now, when there is a difference, how do I generate a (half-) table of pairwise comparisons, using e.g. wilcox.test(), to find the ones where the difference actually occurs.
I guess I don't have to
2004 Sep 13
1
pairwise deletion of missing cases in lm
Does anybody know if there is some sort of "pairwise" option for handling
missing cases in lm and computing the relevant statistics?
I would be much obliged if anyone could help...
Regards
Alan Simpson
Roberts Research Group
2011 Apr 13
0
setting pairwise comparisons of columns (genes)
Hi,
I have a number of genes (columns) for which I want to examine pairwise
associations of genotypes (each row is an individual)...For example (see
data below), I would like to compare M1 to M2, M2 to M3, and M1 to M3 (i.e.
does ac from M1 tend to be found with bc from M2 more often than expected.)
Down stream I will be performing chi square tests for each pair.
But I am looking for a way to
2005 May 12
0
Multidimensional Scaling with pairwise Fst
I want to create a MDS plot with pairwise Fst values derived from a
population genetics project. My Fst values are in a tab-delimited file
(lower triangle only) that I view with Excel. When I use the cmdscale
command I get the message:
Error in cmdscale(x) : Distances must be result of dist or a square
matrix
In addition: Warning messages:
1: "^" not meaningful for factors in:
2005 Sep 19
1
pairwise comparisons among treatments
Hello R listing,
I did two-way anova on lm. Further question the investigator
interested in is what two treatments are different?
I am looking for a command which could do pairwise comparison for
every treatment.
Could anyone help me out?
Thanks a bunch
Kevin
2011 Mar 14
1
pairwise p-values in KM plots?
How can I compute pairwise p-values in Kaplan-meier plots for three or more
groups?
bin.1<-cut(score,c(-1000,-1,1,1000),c("low","intermediate","high"))
I use "km.coxph.plot" currently which reports one p-value.
Thanks very much.
[[alternative HTML version deleted]]
2009 Dec 16
1
number of observations used in cor when use="pairwise.obs"
Dear R gurus,
to compute the correlation matrix of "n" variables with "n_obs" observations
each,
possibly including NA, I use cor(M, use="pairwise.obs")
where m is a "n" x "nobs" matrix.
Now I want to know the number of observations actually used in this
computation,
namely for each pair of columns in M, say pair (i,j), I want to compute
sum(
2017 Jun 08
1
DESeq2 pairwise compasion
There are two line 216 and 218
Three development stages 5 WEEK (5W), 7W, 9W.
Three tissue: Ca, Co, Pa
each with 2 biological replicate.
With two biological replicate. I want to do differential gene expression
analysis using DESeq2 so I tried these codes after reading about DESeq2:
,my aim is to do the pairwise comparison. how to make colData and design
formula.
library("DESeq2")
2017 Nov 03
0
Pairwise comparison, TukeyHSD, glht, ANCOVA
Hi,
I'm wondering if i can use the function "TukeyHSD" to perform the all pairwise comparisons of a "aov()" model with one factor (e.g., GROUP) and one continuous covariate (e.g., AGE). I did for example:
library(multcomp)
data('litter', package = 'multcomp')
litter.aov <- aov(weight ~ gesttime + dose, data = litter)
TukeyHSD(litter.aov, which =
2008 Oct 25
1
pairwise.wilcox.test for paired samples
Dear R Core,
pairwise.wilcox.test does not handle "paired = TRUE" correctly; e.g.
set.seed(13)
x <- rnorm(20)
g <- c(rep(1, 10), rep(2, 10))
wilcox.test(x ~ g)$p.value # 0.075
pairwise.wilcox.test(x, g)$p.value # 0.075, o.k
wilcox.test(x ~ g, paired = TRUE)$p.value # 0.105
pairwise.wilcox.test(x, g, paired = TRUE)$p.value # 0.075, wrong
The line
wilcox.test(xi, xj,
2011 Jan 21
0
Possible bug in Spearman correlation with use="pairwise.complete.obs"
Hi,
I have just encountered a strange behaviour from 'cor' with regards to
the treatment of NAs when calculating Spearman correlations. I guess it
is a subtle bug.
If I understand the help page correctly, the two modes 'complete.obs'
and 'pairwise.complete.obs' specify how to deal with correlation
coefficients when calculating a correlation _matrix_. When calculating
2000 Jun 20
0
Pairwise comparisons/contrasts from a coxph model?
Hello,
this is probably more a statistical question than an R-specific problem, but
I'll risk it.
I've fitted a Cox Proportional hazard model with one factor Treatment (seven
levels) as a predictor variable. The general Null hypothesis (all groups
show the same survival behaviour) is clearly rejected. Now, is there any
(statistically sensible) way of doing pairwise comparisons and/or