1,158 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
0
votes
1
answer
99
views
Confidence interval not covering the entire x axis [closed]
The confidence interval on my scatter plot doesn't cover the entire x axis, while the regression line fits the entire data set. The data that isn't covered by the c. interval doesn't have any missing ...
0
votes
0
answers
85
views
Creating Estimation Plots in R with multiple variables
I have a mixed model that includes three different variables: Treatment, Stimulation, and DRG, as well as a random effect with DRG nested under a group ((1|Group/DRG)). I am looking to assess how each ...
0
votes
0
answers
67
views
I can't get the coverage graph for the Wald interval. It only shows the outlines of 99% CI but not the coverage that wald has
wald = function(x, n, conf.level = 0.99){
p = x/n
sd <- sqrt(p*((1-p)/n))
z = 2.576
ci <- p + z*sd
return(ci)
}
numSamples <- 10000
numTrials <- 10
probs <- seq(0.2, 0.4, 0....
0
votes
1
answer
62
views
Ellipse.contains_points() in Matplotlib is not working as expected
I am using a slightly modified version of the confidence_ellipse() function given in this example on the Matplotlib documentation. The only difference is I am returning the ellipse variable itself ...
2
votes
1
answer
61
views
Confidence intervals from model-averaged objects - error with MuMIn
I've been trying to obtain model-averaged confidence intervals, but MuMIn::confint() throws the error:
Error en get(name, envir = asNamespace(pkg), inherits = FALSE): objeto 'format.perc' no ...
0
votes
0
answers
102
views
Calculating confidence interval for a weighted mean
I am trying to calculate the confidence interval for a weighted mean in R.
Here is some example data:
t <- tibble(value = c(3, 6, 2, 8, 4), weights = c(0.9, 0.8, 1, 1.2, 1.1))
t
# A tibble: 5 ×ばつ 2
...
2
votes
1
answer
78
views
How to bootstrap confidence intervals for predicted probabilities of a glm? [closed]
I am following the Maturity Schedules fishR Vignette by Dr Derek Ogle (https://derekogle.com/fishR/examples/oldFishRVignettes/Maturity.pdf) to generate stock assessments.
Following the code and ...
0
votes
0
answers
50
views
scipy.stats.theilslopes upper and lower bounds
Can someone explain how the lower and upper slope bands are computed in scipy.stats.theilslopes?
Considering that theilslopes computes the slope as the median of all slopes between all possible paired ...
0
votes
1
answer
152
views
Confidence intervals for each grouping factor in glmmTMB model
I'm treating a data with one continuous variable and one categorical variable.
I built a model as following using glmmTMB:
m=glmmTMB(y~x+(1+x|group), family=Gamma(link="log"), data=dat)
'...
0
votes
0
answers
171
views
How marginaleffects::predictions calculates confidence intervals in R?
I am using package marginaleffects in R to get confidence intervals for my predictions of a marginal effect. However, I did some calculations by hand and some of the confidence intervals I am getting ...
2
votes
0
answers
68
views
How to calculate confidence intervals for estimated rates in RPart survival trees in R
I have made a survival tree using the rpart package in R. When I print the tree each node contains an estimated rate. The rpart documents say this value is an estimated relative death rate of that ...
1
vote
0
answers
130
views
add_ci() for row percentages in gtsummary tbl_svysummary() function
I was wondering if there is a way to add confidence intervals for the row percentages created using gtsummary.
Example code:
# Load required packages
library(survey)
library(gtsummary)
library(dplyr)
...
0
votes
1
answer
116
views
R marginaleffects package: Estimate 95% CI for predicted minus counterfactual absolute/relative changes with an interrupted time series
I am taking an online edX course on interrupted time series analysis that makes use of R and part of the course shows us how to derive predicted values from the gls model as well as get the absolute ...
1
vote
0
answers
37
views
COX regression model has a wide 95%CI, ph was not satisfied
enter image description hereI did a cox regression model. The data was classfied according to a variable. The three group was 7,143,7 according the ECOG score. The 95%CI was wide. In this dataset, is ...
0
votes
1
answer
115
views
Confidence intervals with scipy
I have an array of shape (n, timesteps), where n is the number of trials and timesteps is the length of each trial. Each value of this array denotes a stochastic measurement.
I would like to implement ...