Questions tagged [compare-contrast]
23 questions
27
votes
1 answer
Auto-contrast Font Color to Background
I have a background of a field. The bottom is green, the top is gray. There is text on top of the background. Is there a way for the text to "sense" what color the background is and to tint the font in a way to make it contrast?
For example, the…

Evorlor
- 7,263
- 17
- 70
- 141
14
votes
9 answers
How is Lisp related to F#, and is learning Lisp a useful leg up to F#?
This is the situation : I mostly program C# and have written types in it I don't want to lose. At the same time I would like to learn functional programming. The obvious answer of course is F#.
But for everything apart from C# I use emacs as an…

Peter
- 47,963
- 46
- 132
- 181
9
votes
4 answers
Create a new dataframe according to the contrast between two similar df
I have a dataframe made like this:
X Y Z T
1 2 4 2
3 2 1 4
7 5 NA 3
After several steps (not important which one) i obtained this df:
X Y Z T
1 2 4 2
3 2 NA 4
7 5 NA 3
i want to obtain a new dataframe made by only the rows which…

Silvia
- 405
- 4
- 17
4
votes
3 answers
What are the advantages of the WPF ToolBar?
I'm trying to decide whether I should create a simple StackPanel with Buttons on it, or whether I should use the WPF ToolBar class to contain these buttons (I am creating a simple toolbar).
What are the pros and cons to using WPF's built-in ToolBar…

Josh G
- 14,068
- 7
- 62
- 74
2
votes
2 answers
How to show the change between two images which are quite similar?
I have one base image (image1) depicting a quantity in a space for time t1. For the similar result, I have one more image (image2) for time t2 , where t2>t1.
The above two images are plotted in Matlab using imagesc. I want to differentiate between…
user238469
2
votes
1 answer
Contrast between variables in glmmTMB
As a reproducible example, let's use the next no-sense example:
> library(glmmTMB)
> summary(glmmTMB(am ~ disp + hp + (1|carb), data = mtcars))
Family: gaussian ( identity )
Formula: am ~ disp + hp + (1 | carb)
Data: mtcars
AIC …

iago
- 2,990
- 4
- 21
- 27
2
votes
1 answer
How to compute contrats between levels of a parameter in bayesian mixed-effects models and produce bayes factors in R?
I would like to compute contrats between different levels of a parameter from my bayesian mixed-effects models in R, and produce bayes factors. My outcome (Jud) is binary (1=Yes/In synch, 0=No/Out of synch) and the parameter SOAsF is a factor with 6…

SophieB
- 31
- 3
2
votes
1 answer
Visualise differences between factor levels using ggplot
I have a plot in my mind that I would like to create, but I don't know how to successfully achieve this goal.
I have 2 dataframes, one containing the mean value for each factor level, and the other, pairwise differences between these…

Dominique Makowski
- 1,511
- 1
- 13
- 30
1
vote
2 answers
How to change attributes or value labels of a contrast?
I want to perform a regression analysis with R, using a difference contrast for a nominal independent variable.
However the contrast produces factor level names that are not suitable for publication. So I want to change them. The problem is how to…

maurice vergeer
- 75
- 1
- 7
1
vote
1 answer
request effect size for Each pair of the ANOVA pairwise comparisons?
I'm wondering if anyone knows the R code to obtain the effect size for EACH PAIR of the pairwise comparisons?
My codes:
two.way.contrast <- emmeans(two.way.esm, specs= pairwise~emotionF*typeF, adjust=NULL) %>%
…

Miranda
- 11
- 1
1
vote
0 answers
Check for statistically significant differences between groups after running a logistic regression w/ interaction & random effect?
I ran an ordinal logistic regression (using the function clmm from the R package ordinal) with a two-factor interaction and a random effect.
The response is a factor w/ 5 levels (Liker scale: 1 2 3 4 5), the independent variables are a factor w/ 2…

elena_m
- 41
- 4
1
vote
0 answers
Use contrast as measure of effect size glmmTMB
I'm investigating the effect of an experimental treatment with the response variable being Weight (Wt). I have 2 control treatments (A,B) & 2 experimental treatments (C,D). I'm looking to see if the effect of treatment D relative to the control…

gvash
- 11
- 4
1
vote
0 answers
Letters group ordering in Games Howell post hoc in R
I want to get a connected letters report from a Games Howell post hoc test in R. I have achieved it using several options, for example:
library(PMCMRplus)
GH_vol <- gamesHowellTest(Tree.volume ~ Rootstock, data =…

Torsaj
- 11
- 1
1
vote
0 answers
PERMANOVA contrasts by combination of levels
I started to create a script for a PERMANOVA contrasts by combination of levels using adonis function, but doesn't seem to be working a combination of levels matrix with adonis object created, my code…

Leprechault
- 1,531
- 12
- 28
0
votes
0 answers
"Error in make.unique(bi, sep = sep): 'names' must be a character vector"? Any suggestions to solve it?
I need your help in solving an error related to vector name
I'm trying to define the function- ginv2 in r to convert a matrix output into fraction format but, I got an error related to 'names'.
`Error in make.unique(bi, sep = sep) : 'names' must be…

Arpitha
- 27
- 3