I am using statsmodels to create an OLS. I need to estimate confidence intervals (mean confidence interval) for the mean of the predicted value in a certain cohort. I came across this question : Linear regression with `lm()`: prediction interval for aggregated predicted values which gives a solution using R. I couldn't find a good way to retrieve the variance-covariance matrix of predicted values using statsmodels. I'd be grateful if someone came across the same problem or have any other idea on how to aggregate confidence intervals using statsmodels.
Aggregating confidence intervals statsmodel OLS
220 Views Asked by Amine At
0
There are 0 best solutions below
Related Questions in PYTHON
- How to store a date/time in sqlite (or something similar to a date)
- Instagrapi recently showing HTTPError and UnknownError
- How to Retrieve Data from an MySQL Database and Display it in a GUI?
- How to create a regular expression to partition a string that terminates in either ": 45" or ",", without the ": "
- Python Geopandas unable to convert latitude longitude to points
- Influence of Unused FFN on Model Accuracy in PyTorch
- Seeking Python Libraries for Removing Extraneous Characters and Spaces in Text
- Writes to child subprocess.Popen.stdin don't work from within process group?
- Conda has two different python binarys (python and python3) with the same version for a single environment. Why?
- Problem with add new attribute in table with BOTO3 on python
- Can't install packages in python conda environment
- Setting diagonal of a matrix to zero
- List of numbers converted to list of strings to iterate over it. But receiving TypeError messages
- Basic Python Question: Shortening If Statements
- Python and regex, can't understand why some words are left out of the match
Related Questions in R
- How to make an R Shiny app with big data?
- How do I keep only specific rows based on whether a column has a specific value?
- Likert scale study - ordinal regression model
- Extract a table/matrix from R into Excel with same colors and stle
- How can I solve non-conformable arguments in R netmeta::discomb (Error in B.matrix %*% C.matrix)?
- Can raw means and estimated marginal means be the same ? And when?
- Understanding accumulate function when .dir is set to "backwards"
- Error in if (nrow(peaks) > 0) { : argument is of length zero Calls: CopywriteR ... tryCatch -> tryCatchList -> tryCatchOne -> <Anonymous> Execution ha
- How to increase quality of mathjax output?
- Convert the time intervals to equal hours and fill in the value column
- How to run an R function getpoints() from IPDfromKM package in an R shiny app which in R pops up a plot that utilizes clicks to capture coordinates?
- Replace NA in list of dfs in certain columns and under certain conditions
- R and text on Cyrillic
- The ts() function in R is returning the correct start and frequency but not end value which is 1 and not 179
- TROUBLING with the "DROP_NA" Function
Related Questions in LINEAR-REGRESSION
- Batch Gradient Descent algorithm in python is returning huge values
- Error in running a multi-level mixed effects model on microbiome data
- How can I improve R2 score in my regression model? Predicting House Prices
- I have two dataframes representing two different time points. I want to run a linear regression model with data from both time points
- GMMAT model fit and AIC
- Fitting a curve using Linear regression - CLS and NMF
- Error with WLS estimation in R: missing or negative weights not allowed
- Fitted surface does not resemble the heatmap produced from the same data
- Beta coefficient of direct effect increases after controlling for mediator
- How to exclude abnormal data points and smooth the data before linear fitting
- Performing a simple ridge regression
- Why TukeyHSD test keeps returning NA for a linear model in R?
- Inquiry regarding a linear regression model using Python and pandas
- How to find the x-intercept of Weibull distribution
- PyTorch matrix multiplication shape error: "RuntimeError: mat1 and mat2 shapes cannot be multiplied"
Related Questions in STAT
- How to fix 'variable lengths differ' error?
- compute Sobol first order index
- How can I detect an existing directory in ~/ with stat in C?
- WinSCP stat command says FileNotFound, but it exists when I do ls
- Data not replicating using logical replication
- Subset rows within one predictor in GLM without disturb other
- How to fail Ansible playbook if filesize is zero (0)
- Having trouble getting stat_pvalue_manual to facet across my ggplot
- Error in match.arg(opt.crit) : 'arg' must be NULL or a character vector
- How to implement after_stat(ymax) with count expression in r?
- Overlay bar chart in Age standardised mortality rate graph in ggplot in r
- I want to create a separate bar chart but only one bar appears and it looks like they add together, dodge doesn't work
- Unable to get stat of existing directory in Ansible due to variable formatting issue
- Spatial Survival areal data
- object not found in mediation model
Related Questions in STATMODELS
- ARMA(4,4) on Δy and ARIMA (4,1,4) on y with exogenous regressors yield different results in Python
- Autocorrelations with significance stars in python
- MixedLM : Statmodels Implementation Concern
- R lmer equivalent in python with two random effects and no fixed effects
- Is there a way to create a partial regression plot in Python?
- Fast Kernel Regression in Python?
- AttributeError: 'ModelData' object has no attribute 'design_info'
- Calculate power and effect size using stat models - one sample 'two-sided' binomial test
- Why do we need to add_constant in statmodel linear regression
- ETS model in statsmodels library
- statmodels predict train data: shapes not aligned
- Predict future values using linear regression
- I need the values of the ranges that are in the ACF graph
- Time Series Prediction with statsmodels.tsa.arima.model import ARIMA
- statsmodel - TypeError: fit() got an unexpected keyword argument 'disp'
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular # Hahtags
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?