Questions tagged [significance]

231 questions
1
vote
1 answer

Significance value for correlation computed with survey package in R

I would like to obtain the significance value for a correlation computed on complex survey data in R! As far as I know, correlations are calculated as follows with the survey package: var <- svyvar(~var1+var2, design,…
seb-29
  • 51
  • 2
1
vote
0 answers

Significance range on ggplot2

So there is a graph that i did with this code # create the barplot with significance astexrisks ggplot(data = means_df, aes(x = FtrialType, y = emmean, fill = Fdev)) + geom_bar(stat = "identity", position = position_dodge()) + …
Elsa B
  • 11
  • 1
1
vote
1 answer

Type 2 errors with Bayesian models (brms)

Can anyone explain why the following model comes out as significant? I'm comparing one distribution with an exact copy of itself, but have tweaked the priors just right to get significance. I'm not sure why this can…
Peter
  • 11
  • 2
1
vote
1 answer

Checking the significance of the difference between two groups of different length

I need to check if the difference between land surface temperature in the past and present within the LULC is statistically significant. LULC units changed over time and the length of the temperature data changed as well because the class grew. I…
1
vote
1 answer

how to obtain p-value (or CIs) for correlation of random effects in a GLMM (lme4)

I want to test for a correlation between the random effects of a GLMM model calculated in lme4. I have already been suggested to conduct a likelihood ratio comparison of a model with and without the random correlation. That is indeed significant but…
rbeginner
  • 21
  • 4
1
vote
2 answers

How to run a linear regression in R with custom significance level

I'm trying to run a 12 linear regression and want to correct for multiple testing problems. The significance level in my field is usually p = 0.05 With the Bonferroni correction it would be p = 0.05 / 12 = 0.0041 If I run the regression as fit <-…
1
vote
0 answers

Where can I find the significance of my random effect for a GAMM in gamlss?

I created the following GAMM function using the R package gamlss: model<-gamlss(Overlap~ Diff.Long + Diff.Fzp + DiffSeason + random(Xnumber),family=BEZI(mu.link = "logit", sigma.link = "log", nu.link =…
Cam
  • 449
  • 2
  • 7
1
vote
0 answers

P-value significance levels in corrplot

I would like to show not only * when a correlation is significant but the different significance levels, e.g. * for p < .05, ** for p < 0.01 and so on. I calculated a correlation and the p-value-function as follows: Corr_Emo <- cor(df_Emo[, 3:11],…
Hey_It'sME
  • 13
  • 2
1
vote
0 answers

How to add the significance dots over a plot

For a dataset, The significance is calculated and already stored as a dataframe using scipy.stats.linregress. how do I add the significance dot p_value<0.05 as an overlay on the existing significance diagram. I want to know the means to do it e.g,…
1
vote
1 answer

How to get p-values only in significance test in R

I m working on significance tests in R, especially wilcox.test. I check for example column A of my dataframe data. wilcox.test(data$A, mu=3) Afterwards I get a lot of data and text in the console. Is there a posibility to get only the p.value? I…
upflow
  • 35
  • 4
1
vote
0 answers

Align asterisk of geom point ggplot with position dodge

I am trying to align significance asterisks (* or ** or ***) to the points of a geom point graph with position dodge to indicate the significance of a value using ggplot2. I wasn't able to find any similar questions and answers with similar…
Simona
  • 87
  • 2
  • 8
1
vote
0 answers

Adding significance brackets between bars with subgroups in bar plot ggplot2

I am trying to create a figure with brackets indicating significance between sublevels of my bar plot. The goal is to create something that looks like this based on results from a Wilcoxon test: However, I can't seem to figure out how to include…
1
vote
1 answer

Adding significance levels (for percentage differences) to a multilevel dodge ggplot2

I am trying to use ggsignif package, and reproduce the answer given by const-ae, here, with the following data: library(ggplot2) library(ggsignif) counts <- structure(list(ECOST = c("0.52", "0.52", "0.39", "0.39", "0.26", "0.26", "0.13", "0.13",…
Tom
  • 2,173
  • 1
  • 17
  • 44
1
vote
1 answer

R: geom_signif in a ggplot2 plot with facets; why can't I specify comparisons that do not include the first group?

I am trying to do something that I have done in the past successfully, but now I am not sure if I am missing something or something has changed in newer versions, but for the life of me I cannot make it work... I just want to make a faceted ggplot2…
DaniCee
  • 2,397
  • 6
  • 36
  • 59
1
vote
1 answer

Stat_compare_means within and between groups

This is my first R attempt. I want to use stat_compare_means to compare means within subgroups as well as means from different subgroups. And I need the x-axis labeled by Treatment. I am aiming for some thing like this My data looks like the…
cpt
  • 11
  • 3