Questions tagged [pairwise]
The pairwise tag has no usage guidance.
pairwise
284
questions
0
votes
0
answers
19
views
How to carry out Dunnett's post hoc correction on a 2-way ANOVA in R?
How can I perform Dunnett's post hoc correction after a 2-way ANOVA in R?
The Dunnett's test compares every mean to a control mean. Using ToothGrowth dataset as an example, lets just say that that ...
0
votes
0
answers
16
views
is there a way to exclude certain biologically irrelevant pairwise comparisons when running a sma with the SMATR package?
I am mainly interested in whether there are any differences in the scaling relationship of the antennal lobe (one part of the insect brain) volume between wild-caught and insectary-reared individuals ...
0
votes
0
answers
24
views
How do I fix my issue with coding a MaxEnt test in R
I have been trying to conduct a MaxEnt test in R and have run into an issue that I can't solve. I would appreciate it if someone could help me. My environmental raster data and presence data are ...
0
votes
0
answers
41
views
Different results for the same function on the same data
I was using version R 4.3.0 and PMCMRplus 1.9.7 and got the following results:
> frdAllPairsConoverTest(y = dados_CM$media, groups = dados_CM$ano, blocks = dados_CM$cidade, p.adjust.method = 'none')...
0
votes
0
answers
23
views
M-query multiply pairs of columns
I have data with the following headers:
A B C D .. Z A1 B2 C2 D2 .. Z1
I need to multiply these in pairs and the result placed in the '1' columns, i.e. A1=A * A1, B1=B * B1, etc.
I've previously used ...
1
vote
1
answer
41
views
split-half reliability using Jensen-Shannon Divergence
I have two pandas dataframes in which each row is a person and their response data in the form of a list:
df_1 = pd.DataFrame({'ID': ['a', 'b', 'c', 'd', 'e', 'f'], 'response': [["apple", &...
1
vote
0
answers
45
views
How do I rank order pairwise preference data from a single respondent when there are violations of transitivity?
I have asked a single respondent (actually an LLM) to pick a winner from all pairwise comparisons within a list of 100 objects.
My data therefore comprise a list of all pairwise comparisons within ...
1
vote
2
answers
53
views
Pairwise differences between rolling average values for different window widths
This code aims to compute the rolling average of a signal for a range of window widths (i.e. how many points are averaged), and then calculate the sum of all pairwise differences between averages at ...
2
votes
2
answers
89
views
More efficient program to create columns and sum pairwise comparisons of specific conditions in a large dataset
I have a dataset like this:
dat1 <- read.table(text = "
nodepair 3 4 5
1 A6_A1 2 5 1
2 A6_A2 2 5 1
3 A6_A3 2 5 1
4 AL_A1 1 0 0
5 D_A6 0 3 0
6 F_A1 1 0 1
7 H_D 0 0 2
...
0
votes
1
answer
50
views
Filtering cells in pandas dataframe with unique row/column index pairs
I have a NxN pandas dataframe with identical row and column names. Each element represents the pairwise distance between 2 objects with IDs identified by the row and column names (for instance in the ...
0
votes
1
answer
69
views
How to select winner of condorcet election via matrix?
I would like to understand how the condorcet winner is elected in a ranked-choice election.
There is an example on wikipedia - under the sub-heading "Pairwise counting and matrices" under ...
1
vote
1
answer
36
views
Replacing rows of NA with another row meeting specific column matching
Here's a data snippet:
Tab1 <- read.table(text = "
nodepair ES1 ES2 ++ -- +- -+ 0+ +0 0- -0 00
1 E_A6 3 3 0 0 0 0 0 0 0 0 1
2 E_A6 4 3 NA NA NA NA NA NA NA NA NA
3 ...
0
votes
1
answer
45
views
Custom emmeans contrasts
I have a longitudinal study in which there are two treatments on day -3 but then individuals in each of these two treatments are further split into four treatments on day 0 and onward into day 2. In ...
0
votes
1
answer
83
views
A more efficient way of doing grouped pairwise comparisons in a large dataset?
I have data that looks like this:
Tab4 <- read.table(text = "
nodepair `++` `--` `+-` `-+` `0+` `+0` `0-` `-0` `00` ES
1 A1_A1 0 4 0 0 0 0 0 0 ...
0
votes
1
answer
96
views
Making a list of pairwise comparisons between specific groups of data
I have two dfs that look something like this:
dat2 <- read.table(text = "
year nodepair `++` `--` `+-` `-+` `0+` `+0` `0-` `-0` `00` ES
1 1999 A1_A1 0 4 0 0 ...