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
0
votes
0 answers

beta regression with optim in R

I am trying to estimate parameters in a beta regression using optim in R. I can do so if I parameterize the model with mu and phi as is done in the package betareg. That optim code is shown below. However, I cannot estimate alpha and beta…
Mark Miller
  • 12,483
  • 23
  • 78
  • 132
0
votes
0 answers

Can I use a Beta regression for a lineal outcome variable?

I have a lineal outcome variable and multiple predictors (categorical and numerical). Lineal regression assumptions are not satisfied. I only want to know if predictors are statistically significant and the pseudo r2. It is a behavioural sciences…
macramole
  • 111
  • 1
  • 8
0
votes
0 answers

Beta Ridge Regression

With reference to my questions this and this, some one suggest me to apply ridge regression and then beta regression. because I was unable to calculate Beta Ridge Regression. Is this right way, I am confused about this. Kindly check the following…
J AK
  • 65
  • 5
0
votes
0 answers

"saturated likelihood may be inaccurate" warning and negative deviance when running betar family in GAM

My code when running the generalized additive model with the betar family is as follow. libary(mgcv) b1 <- gam(ssim_exp ~ s(stage, k = 4, fx = TRUE, by = comparison_type) + comparison_type, data = df, family = betar(link = "logit",…
nerd
  • 473
  • 5
  • 15
0
votes
0 answers

Robust Beta Regression in R

I have been trying to fit a beta regression to a percentage/proportion outcome variable. I used libraries as glmmTMB, gamlss, and betareg for that matter. Since I can see some potential outliers in the residual plots, I was wondering if there is a…
SteveMcManaman
  • 391
  • 1
  • 17
0
votes
0 answers

stan_betareg gets the error " Invalid stanfit object produced"?

I cannot run stan_betareg. Checked that all y variables are in hte proper support and updated the package. Still doesnt work? What else should I check? Running model<-stan_betareg( linformula, link=c('logit'), data=train , model = TRUE, x = TRUE, y…
0
votes
1 answer

Different coefficients with tab_model() and tidy()

I am getting different regression coefficients for the same model when using the tab_model() function from the sjTools package compared to tidy() from the broom package. Why is that? This is my data: df <- structure(list(weed_coverage = c(0.04,…
Effigy
  • 145
  • 7
0
votes
1 answer

issue with fitting beta regression

I am trying to model the relationship between my response 'crop coverage [%]' ~ weed coverage [%] + Soil Moisture [%] using R. Since I am dealing with proportions, I chose to do a beta regression. I was told that in order to better fit and visualize…
Effigy
  • 145
  • 7
0
votes
1 answer

betareg not using multithreading on CentOS

Model Fitting Runs Single-Threaded on CentOS I am fitting a mixture of Beta regressions model with the betamix function from the betareg package. I originally developed the code on Mac OS X, but am now running it (i.e., moving to at scale) on an HPC…
merv
  • 67,214
  • 13
  • 180
  • 245
0
votes
0 answers

Is it possible to let the precision/variance parameter in a beta regression via GAM vary with the predictor as well?

I want to fit a spatiotemporal model where my dependent variable is in the range [>0,<1]. A beta regression seems suitable for this case. I tried the betareg package, that works like a charm, but to my knowledge I cannot include complex interaction…
JmO
  • 572
  • 1
  • 4
  • 20
0
votes
0 answers

Betareg summary causes memory allocation error

I am currently building a model on a data set of 1,000,000 observations using the betareg package in r. My code is: m1 <- betareg(rr ~ cred_report, data = mydata, link = "logit") betareg seems to run just fine, however, when I go to summarize the…
0
votes
1 answer

Random effect with gam() with betar family in R

I'm having trouble with my gam() analysis with betar family and the weird thing is that it worked perfectly before. After I restarted R, all kinds of error and warning messages showed up. I'm analysing the effect of a proportion on another…
Peter
  • 343
  • 5
  • 17
0
votes
1 answer

Beta regression or logistic regression with offset term?

I have a dependent variable (DV) that is a proportion that is bounded by [0,1). Initially I was considering using a beta regression to model the relationship between this proportion and two other factors (Zone and Season), but being that the data…
amela
  • 3
  • 2
0
votes
0 answers

how to draw regression surface with one continuous predictor and one factor predictor in r?

Trying to do some regression on one continuous predictor and one factor predictor. The code below works when using abline (but gets a: Warning message: In abline(models[[i]], col = labelColors[i], lty = 2:4) : only using the first two of 3…
Ray Tayek
  • 9,841
  • 8
  • 50
  • 90
-1
votes
2 answers

betareg on skewed proportions leads to a high predicted mean

I'm running a beta regression on proportions which are highly skewed (median ~2%, mean ~13%). However, the mean predicted value coming out of the model is typically about twice as large as the sample mean. Even the minimum predicted value is…
Jordo82
  • 796
  • 4
  • 14
1
2