Skip to main content

All Questions

Filter by
Sorted by
Tagged with
1 vote
1 answer
61 views

Is there another way to represent the confidence interval as an error bar?

I am currently working on a code that involves representing the mean standard deviation of the total weight of species collected over forest stands containin shelterbelts (Yes, No) further I want the ...
Madelein Victor's user avatar
1 vote
3 answers
292 views

Multiple confidence interval by group

I am trying to calculate multiple means and 95% ci by group for 90+ columns: sample data: Group| A_pre | A_post | B_pre | B_post 0 20 21 20 23 1 30 ...
amir.fathi's user avatar
1 vote
1 answer
40 views

Extrapolate 95% CI for unit decrease and for percentage decrease from lmer outputs

I am testing the association between percentage of impervious surface areas (ISA) and number of eggs per breeding event. This is my model structure: fit=lmer(CS~ISA+Mass_Fem*LayDate+Year+(1|Site),data=...
Parus major's user avatar
1 vote
1 answer
201 views

Method to extract mean (CI 95%) when independent variable is continuous (both pos and neg) and dependent variable is binary?

(This question is similar to Extract confidence interval for both values of binary variable for glm()?, however in this example the continuous variable includes negative values, and the dependent and ...
Wandering_geek's user avatar
1 vote
0 answers
49 views

single stage cluster sampling

Choose a single stage cluster sample of size 1,000 students and then calculate the mean value for both variables along with their 95% confidence interval. Variable 1 is the class number, V2 is the ...
Holly Huang's user avatar
0 votes
1 answer
1k views

How to calculate confidence intervals for predictive margins/means of predicted values with a logistic regression model

I am not sure if this is a question for stackoverflow or crossvalidated as it contains both an R specific coding part and a general statistics part. In a project we want to use predictive margins, or ...
Stephan's user avatar
  • 113
0 votes
4 answers
2k views

The mean, standard deviation and 95% confidence interval for the mean of the following variables in R

I need to create a summary table that shows the mean, standard deviation and 95% confidence interval for the mean of the following variables: Selling Price, Number of bedrooms, Size of house, Distance ...
I_B_O's user avatar
  • 33
2 votes
1 answer
1k views

How to custom add vertical lines to ggplot facet function?

I have a dataset where each species was mixed with a certain density (numeric) and type (numeric) of another species. I want to add two types of vertical lines to each of my facet_grid panels in ...
Rspacer's user avatar
  • 2,429
0 votes
1 answer
55 views

How to get values inside (...) and take mean?

I am using package R0. I am trying to replicate the example provided in CRAN pdf but not getting exactly same result as provided in pdf. code: library(R0) data(Germany.1918) mGT <- generation....
Susmita Dutta's user avatar
3 votes
1 answer
2k views

Getting the values calculated by stat_summary with mean_cl_boot

I'm plotting some X values with mean_cl_boot with large confidence intervals How can I export the text for both the value of the fun.y = mean and fun.data = mean_cl_boot in each group? I have an ...
Gabriel G.'s user avatar
0 votes
1 answer
461 views

How to draw a 2 mean line plots with CI in 1 plot

I'm trying to draw 2 line of means in one plot with the CI. I used gplots which has function plotmeans to draw a line but I only can draw one line in one plot. Anyone could help? Thanks a lot This is ...
Lara's user avatar
  • 73
0 votes
2 answers
244 views

plot mean value of a signal for confidence interval

i have a signal on y axis (yawrate) and a time signal on x axis (time). I tried to find the confidence interval of this signal. But i can't plot mean value of signal. I think because mean value has 2 ...
Aure U.'s user avatar
  • 17
1 vote
1 answer
899 views

Plotting confidence intervals-lines in one graph with means inside

I need to plot 12 confidence intervals in one graph using MATLAB and each with mean marked inside. Any ideas how I can do it? You can find an example in the following picture: I am using a code below ...
Natalia's user avatar
  • 29
0 votes
1 answer
2k views

How to plot mean of group means in ggplot2 in R?

I have the following data(dat) V W X Y Z 1 2 3 4 5 2 2 3 4 5 3 2 3 4 5 4 2 3 4 5 I wish to plot a line with the mean of group means For eg. in the above dataset, the overall mean ...
Rspacer's user avatar
  • 2,429
0 votes
2 answers
18k views

How to plot multiple group means and the confidence intervals in ggplot2 (R)?

I have data that looks like this: A B C 8 5 2 9 3 1 1 2 3 3 1 2 4 3 1 I need to plot the means of each of these along with the confidence intervals using ggplot2. I also want to derive ...
RPlotter's user avatar
  • 109
1 vote
1 answer
2k views

Binomial confidence intervals of means with R

I have got 4 different data.frames that have observations that follow a binomial distribution and I need to calculate, for each one, the confidence intervals related to the means of a second column (...
user avatar
0 votes
1 answer
242 views

Calculating and Displaying Confidence Intervals of Means

I've currently got a graph that displays the mean of the distance per group, in R. However I am struggling to add the confidence intervals in and display them on the graph. My code is: TeamMeans<...
user3555044's user avatar
0 votes
1 answer
501 views

multiple mean_sdl with smooth plotting

How could I plot p7 and p6 altogether in the same output, where m7 and m6 are obtained by melting different datasets? thanks in advance p7 <- ggplot(m7,aes(x=time,y=value)) +stat_summary(fun.data =...
jackb's user avatar
  • 704
1 vote
2 answers
2k views

Randomly subset data set multiple times and calculate means and variances

I never came to any conclusions re: this question, so I thought I would rephrase it and ask again. I would like to subsample my dataset 10,000 times to generate means and 95% CIs for each of my ...
jslefche's user avatar
  • 4,589