Questions tagged [pairwise]

273 questions
0
votes
0 answers

Realiability of pairwise_t_test() function

I have the following dataset df1 <- data.frame( ANT = rep(c("flat", "curved"), c(67L, 48L)), BUT = rep(rep(c("LOW", "HIGH", "MEDIUM"), 2), c(25L, 22L, 20L, 17L, 17L, 14L)), var = c( 14.0893991925757, 34.5484885681107, 20.7174240548614,…
12666727b9
  • 1,133
  • 1
  • 8
  • 22
0
votes
1 answer

Compare previous and next Int values as a result of a python for loop

The result of an iteration produces: 93 93 93 93 ... 96 96 96 108 and so on I want to compare the first number to the next, e.g., (93, 93) - result True, True, True etc then (93,96) result False and so on. To do this I made the following, with…
riot12
  • 63
  • 4
0
votes
1 answer

Pairwise dissimilarities nesting a time-series loop inside a site loop - multiple times

I have a data frame where rows are years (~30 years) and sites (~300 sites) and columns are species abundances (~200 spp). The data looks like: Site Year Specie 1 Specie 2 Species n Site 1 Year 1 0.4 0.0 0.0 Site 1 Year…
JaGo
  • 5
  • 3
0
votes
0 answers

Nested Wilcoxon Test

So I want to see if there is a difference between paired sample means and there is nestedness. 2 years with 3 groups (Stages) with 5 plots in each and there are 20 subplots that were sampled in these plots. My question is 1) Is this the right…
0
votes
2 answers

Pairwise row difference - Python

I would like to create a matrix showing deviation by pairwise comparison of columns. This is the head of my dataframe. My dataframe consists of 1660 rows and 8 columns (A:alternatives, C:criteria). C1 C2 C3 A1 1996 36 0.18 A2 …
0
votes
2 answers

Flag positive/negative pairs where id is the same

I have a dataset with ~50k rows. There are 2 relevant columns for my problem which are 'Saldo' and 'id'. I would like to flag pairs (2 rows) were id's match and were Saldo = - Saldo. NB: the dataframe is not sorted (yet) on id. A single id can have…
0
votes
0 answers

pairwise similarity giving bad output

I have generated the below code in python 3 to look at the similarities between the two blocks of text. One is a list of adjectives and the other is a sentence. The aim is to see if the adjectives (or hero archetype) are representative of the block…
ben121
  • 879
  • 1
  • 11
  • 23
0
votes
1 answer

How to merge two matrices into one with "corrplot"?

I have two matrices, one with the correlation coefficients between pairs of variables, and the other which shows the P-values for the same pairs: Matrix 1 (values of r): matrix_r <- structure(c(1, 0.137953684143088, 0.057024439117235,…
0
votes
1 answer

How to deal with matches pairwise in regex?

I have a basic understanding of regex (I think) - but lookahead and all that just escapes me :( So I have a sense that this should be doable with rx, but I have no idea how to do it. I want to copy Markdown from Notion into MediaWiki. Both support…
MBaas
  • 7,248
  • 6
  • 44
  • 61
0
votes
0 answers

How to convert a distance matrix to a pairwise comparison in Python?

I have a distance matrix and want to convert it to a pairwise comparison. The distance matrix: Distance…
0
votes
1 answer

Getting pairwise comparisons from a pandas dataframe from a list

I have a dataframe with pairwise comparisons (comparing "query"and "reference"), a distance column and some columns with metadata. I made a selection and created a new dataframe from the main dataframe. I want all pairwise comparisons of the 19…
0
votes
0 answers

pairwise comparison of categorical groups

I have proportion data for 10 behaviours for morning, day, and evening and the initial beta regression shows that there is a difference in the proportion of behaviours depending on time of day. I'm now trying to find a test that will let me do a…
0
votes
0 answers

0 x 0 matrix when using pairwise t test

I am trying to do a post-hoc test to compare different types of a variable (levels of pollution, which are coded as 1, 2 , 3). When I run the tests it gives me a "0 x 0 matrix" error. p.none <- (d$pollute = 1) p.i <- (d$pollute = 2) p.m <-…
0
votes
1 answer

Pairwise not being imported with itertools

I'm on python 3.8.2 and I've tried the following code from itertools import pairwise However, it returns ImportError: cannot import name 'pairwise' from 'itertools' (unknown location) I tried other variants of the same thing like import itertools…
12ksins
  • 307
  • 1
  • 12
0
votes
0 answers

Error in app$vspace(new_style$`margin-top` %||% 0) : attempt to apply non-function in rstatix command

I don't understand what I am doing wrong: I would like to test for pairwise differences in my data: leber_test <- structure(list(ID = c("TG5", "YLG22", "SR3", "KBU15", "YGL31", "TG6", "KBO21", "KBU15", "YLG19", "FB9"), sub_group = structure(c(2L,…
Nadiine El Nino
  • 339
  • 1
  • 6