Questions tagged [pairwise]

273 questions
1
vote
0 answers

R Vegan: evaluate pairwise permanova significance between comparisons

I'm looking for a statistical test that will allow me to evaluate whether pairwise comparisons are statistically different from one another. I'm using ecological community count (abundance) data sampled across multiple sites before, during, and…
Joshua Smith
  • 125
  • 6
1
vote
1 answer

Pandas: Pairwise Comparison Of Subjects To Eliminate Dominated Alternatives

I have a large dataframe of experimental results, which I need to triage to remove 'dominated' subjects across multiple criteria. The following 'toy' dataframe reflects the overall structure but not necessarily the dimensions of the 'experimental'…
matekus
  • 778
  • 3
  • 14
1
vote
1 answer

pairwise_similarity in R: not all rows compared to all others

My understanding of the pairwise_similarity function in R was that it compared every item to every other. So for example, if you had 3 text items: Item 1 would be compared to item 2 and 3 Item 2 would be compared to item 1 and 3 Item 3 would be…
fe108
  • 161
  • 7
1
vote
0 answers

Using ORs incl. 95%CIs to find pairwise differences

I am investigating how students score on a test, based on their experience on the subject. My outcome, test_answer, is binary (0 for a wrong answer, 1 for a correct answer). Experience is a categorical variabel: group 0-3 (0 is no experience, and 3…
1
vote
3 answers

How to get the variable names of pairwise combinations?

I have multiple pairwise comparisons to do in order to find common items between the lists. My code below works. However, I would like to keep track of the names of the lists. which are geno1, geno2 and geno3. I'm not sure how to get the…
Amilovsky
  • 397
  • 6
  • 15
1
vote
1 answer

Adding holm correction to FWER graph

I asked this question on cross-validate, but was asked to move it here because it involved coding more than a statistics question. I'm teaching a statistics class about family-wise error rate, and have created a graph to illustrate how, when we…
Andy
  • 413
  • 2
  • 15
1
vote
2 answers

Pairwise comparison table from a list R

I have a list of 4 vectors with terms (characters). I'm looking to obtain a table with the pairwise comparison of the terms. How many are equal in each pairwise comparison? Here is an example: set.seed(20190708) genes <-…
Francisco
  • 119
  • 6
1
vote
1 answer

Aggregate sum of column values for all pairwise groupings of other columns in a dataframe in R

I have been trying to aggregate the sum of one column in a dataframe for all pairwise comparisons of the other columns in a data frame. The dataset I have is very large, but below is a dummy set that illustrates the issue I am having. I want to be…
XFrost
  • 109
  • 4
1
vote
1 answer

Subset a dataset based on the appearance of values in a column in R

I have a dataset (ds) with two columns. There are either one or two entries with the same number in "match". "status" is a binary variable. There are pairs, for example, the value 12 in match appears twice, one for where status is 1 and 0 for the…
t_97
  • 33
  • 3
1
vote
3 answers

Large data pairwise calculation in R

I have a super large data frame containing nearly 5 million rows. data then I have a char list containing around 2000 items, I need to do a pairwise(lets say one is A other is B) calculation on them, so at the end, I will have a 2000*2000 matrix…
klklklkl
  • 13
  • 2
1
vote
2 answers

pairwise similarity with consecutive points

I have a large matrix of document similarity created with paragraph2vec_similarity in doc2vec package. I converted it to a data frame and added a TITLE column to the beginning to later sort or group it. Current Dummy…
1
vote
1 answer

Building sets from pairwise comparisons

Trying to formulate my problem generically: I did a pairwise comparison of multiple elements and want to build sets (groups) from this adjacency matrix (i.e. build groups where of elements where the pairwise comparison equals TRUE). For example: I…
Ratnanil
  • 1,641
  • 17
  • 43
1
vote
2 answers

Any other options besides the traditional CLD bar graph?

I am looking for an alternative approach to plotting results from pairwise comparisons than traditional bar plots. If possible, I would like to create a plot like the one shown below [1], but for a model that includes an interaction effect. R code…
Lisa Kuder
  • 13
  • 3
1
vote
2 answers

How to calculate all pairwise abs differences among many variables in R

I need to calculate all pairwise abs differences among many variables (there are 100 in my dataset). I expect to get one column for each difference: I have tried the next function but it summarizes the results, and I do not need the sum, but all the…
Juan Almeira
  • 101
  • 7
1
vote
1 answer

Making a heapmap with p values after pairwise comparisons

I'm running multiple pairwise comparisons on grouped factors and I would like to represent the resulting p-values with a heatmap. This is a small example of what my dataset looks like, but in reality, it is much more complicated. My factors are site…
Valen78
  • 115
  • 6