Questions tagged [betareg]

Use this tag for questions related to the "betareg" R package

betareg package performs beta regression for modeling beta-distributed dependent variables, e.g., rates and proportions. In addition to maximum likelihood regression (for both mean and precision of a beta-distributed response), bias-corrected and bias-reduced estimation as well as finite mixture models and recursive partitioning for beta regressions are provided. See package manual and package vignette for details.

30 questions
4
votes
2 answers

betareg fails to converge is dependent variable has more than 8 digits

I am having problems using the betareg package. When I try to run the model m1, the model does not converge. However, when I round y to 8 digits, it works well (127 iterations). See below for the code. Does anybody know why this tiny change as such…
OnLeRo
  • 83
  • 1
  • 6
4
votes
1 answer

"non-finite value supplied by optim" error when using betareg

I'm working with betareg package for beta regression but receive the below error: Error in optim(par = start, fn = loglikfun, gr = gradfun, method = method, : non-finite value supplied by optim I can trace this error to creating the initial…
alexwhitworth
  • 4,839
  • 5
  • 32
  • 59
3
votes
1 answer

Beta regression & spatial autocorrelation

I am trying to work out the best possible way to add random effects to my beta regression. I have a data frame consisting of longitude, latitude, seal tag, sea surface temp in kelvin and the mean behavioural position of the seal. I have rescaled…
Anna Firth
  • 31
  • 1
2
votes
1 answer

Ordinal logistic regression (or Beta regression) with a LASSO regularization in R?

I was wondering if someone would know an R package that would allow me to fit an Ordinal Logistic regression with a LASSO regularization or, alternatively, a Beta regression still with the LASSO? And if you also know of a nice tutorial to help me…
2
votes
1 answer

Plot and beta- regression output do not match

I am getting a strange output using tab_model() after fitting a beta regression model that does not seem to make sense. The intercept and the coefficients dont seem to correspond to the plot. For example the CI for soil_moisture seems way to high.…
Effigy
  • 145
  • 7
2
votes
2 answers

Betareg in Stargazer (Error to allocate vector of size __)

betareg default residuals are heavy, which may cause an error to allocate vector due to its high size. This can be solved by changing the type of residuals in the summary call as explained here. However, when presenting regression tables with…
jlp
  • 165
  • 1
  • 3
  • 12
2
votes
0 answers

Set up a DGP with correlation between errors for the beta regression

I want to set up a scenario where errors are correlated. In the first setting, a betaregression should be fit, the second scenario includes a conditional logit model. In order to correlate the two scenarios, I correlate the errors (or at least that…
Thomas
  • 1,392
  • 3
  • 22
  • 38
2
votes
1 answer

How to calculate confidence intervals for fitted values of beta regression using the bootstrap method in R

I am trying to bootstrap fitted values of my betareg model in R. I have read many other questions and websites such as https://stats.stackexchange.com/questions/234254/confidence-intervals-for-beta-regression/234256#234256, How to Bootstrap…
Peter
  • 343
  • 5
  • 17
2
votes
1 answer

adding labels to diagnostic plots in R

I have run a beta regression in R and would like to assess the residual diagnostics. I have used the plot function and obtained plots, however, the potential outliers are not labelled. How can I add the corresponding labels to the…
user1607
  • 531
  • 7
  • 28
2
votes
0 answers

Interaction plot with betareg in R and two continuous variables

I am looking for a function in R, that will take the output from the betareg regression, and plot an interaction plot with 2 continuous variables, where one of these variables is displayed as the mean and the SD on the plot. I have been trying to…
Tim
  • 133
  • 10
2
votes
1 answer

How to find the minimum floating-point value accepted by betareg package?

I'm doing a beta regression in R, which requires values between 0 and 1, endpoints excluded, i.e. (0,1) instead of [0,1]. I have some 0 and 1 values in my dataset, so I'd like to convert them to the smallest possible neighbor, such as 0.0000...0001…
Rodrigo
  • 4,706
  • 6
  • 51
  • 94
1
vote
0 answers

How to account for temporal autocorrelation in beta regression fitted with betareg R package?

I have time series data where I calculated disease severity in plants at different intervals. My response variable is between 0 & 1 (both exclusive), so beta regression seem to be the most appropriate model. My predictors are weather variables - the…
Ahsk
  • 241
  • 1
  • 7
1
vote
1 answer

How can I fit a Beta regression in R?

I'm a beginner with R, and I have a vector distributed according to Beta distribution. I would like to fit a regression using this data and two explanatory variables. I don't know the appropriate syntax though.
SteveMcManaman
  • 391
  • 1
  • 17
1
vote
1 answer

Get predicted value out of a betaRegression model when using `nest()`

I'm running some regression analyses using a nested file. The code that I have is similar to this: library(tidyverse) library(purrr) library(betareg) # 1. Create dataframe ---- dt <- data.frame(Marker = as.factor(paste0('m', rep(seq(1,10), 10))), …
godines
  • 349
  • 4
  • 9
1
vote
1 answer

regression - bounded depdent variable - model choice

I am working on a problem where i want to see if a measure (test) is a good predictor of the outcome variable (performance). Performance is a bounded variable between 0-100. I am only thinking of the methodology for now and not working with the data…
user1607
  • 531
  • 7
  • 28
1
2