Questions tagged [gamlss]

Generalized additive models for location, scale and shape (GAMLSS).

Questions about gamlss models—Generalized Additive Models for Location, Scale and Shape, and implementations such as R package gamlss and related packages, or implementations in other languages (there is an implementation in java).

96 questions
26
votes
1 answer

What diagnostic plots exists for quantile regression?

Following on my question for OLS, I wonder: what diagnostic plots exists for quantile regression? (and are there R implementation of them?) A quick google search already came up with the worm plot (which I have never heard about before), and I'd be…
Tal Galili
  • 19,935
  • 32
  • 133
  • 195
24
votes
3 answers

Regression modelling with unequal variance

I would like to fit a linear model (lm) where the residuals variance is clearly dependent on the explanatory variable. The way I know to do this is by using glm with the Gamma family to model the variance, and then put its inverse into the weights…
Tal Galili
  • 19,935
  • 32
  • 133
  • 195
12
votes
2 answers

Parametric modelling of variance of count data

I am looking to model some data, but I am not sure what type of model I can use. I have count data, and I want a model that will give parametric estimates of both the mean and the variance of the data. That is, I have various predictive factors…
Brian Diggs
  • 1,021
  • 8
  • 17
11
votes
3 answers

fit GLM for weibull family

I am trying to fit generalized linear model for weibull family, but when I try it in R, it gives an error. I know that weibull does not fit in exponential family, but I have read some research articles about fitting GLM for weibull family. If anyone…
NiroshaR
  • 165
  • 1
  • 7
11
votes
1 answer

Convert SAS NLMIXED code for zero-inflated gamma regression to R

I'm trying to run a zero-inflated regression for a continuous response variable in R. I'm aware of a gamlss implementation, but I'd really like to try out this algorithm by Dale McLerran that is conceptually a bit more straightforward.…
a11msp
  • 743
  • 6
  • 20
10
votes
1 answer

Significance of (GAM) regression coefficients when model likelihood is not significantly higher than null

I am running a GAM-based regression using the R package gamlss and assuming a zero-inflated beta distribution of the data. I have only a single explanatory variable in my model, so it's basically: mymodel = gamlss(response ~ input, family=BEZI).…
a11msp
  • 743
  • 6
  • 20
10
votes
2 answers

Simulate linear regression with heteroscedasticity

I am trying to simulate a dataset that matches empirical data that I have, but am unsure how to estimate the errors in the original data. The empirical data includes heteroscedasticity, but I am not interested in transforming it away, but rather…
user44796
  • 429
  • 1
  • 3
  • 10
9
votes
1 answer

Prediction interval for a future proportion of successes under Binomial setting

Suppose I fit a Binomial regression and obtain the point estimates and variance-covariance matrix of the regression coefficients. That will allow me to get a CI for the expected proportion of successes in a future experiment, $p$, but I need a CI…
8
votes
3 answers

How to model zero inflated, over dispersed poisson time series?

I am trying to model weekly disease counts in 25 different regions within 1 country over a ten year period as influenced by temperature. The data is zero inflated and over dispersed. I am most familiar with Stata but I don't think that there is…
8
votes
1 answer

Zero inflated beta regression using gamlss for vegetation cover data

My goal is to analyse vegetation cover data. The way the data collection works is that you throw a quadrat (0.5m x 0.5m) in a sample plot and estimate the percent cover of the target species. Here is an example: df <- structure(list(site =…
Stefan
  • 4,977
  • 1
  • 18
  • 38
7
votes
3 answers

Are Random Forests more powerful than generalized linear models?

I have never used Random Forests, but I have read some about it. Until now I have used GLM/GAMLSS extensively. I would like to know: What are the advantages that RF provides over GLM/GAMLSS? What are the disadvantages of using Random Forests? I am…
6
votes
2 answers

Modelling zero-inflated proportion data in R using GAMLSS

I am new to the gamlss package and would like to check that I am using the correct family for proportion data (tree species cover after treatment), which is bounded between zero and one. According to the documentation, the correct distribution…
Alex Picard
  • 61
  • 1
  • 3
6
votes
2 answers

Create Spline from Coefficients and Knots in GAMLSS

In the R package GAMLSS, it is possible to model a random variable $Y$ as a smoothed non-parametric function of some predictor $x$. One option for such a function is the penalised spline using y~pb(x). This outputs a list of coefficients and knots…
LBogaardt
  • 494
  • 1
  • 4
  • 18
6
votes
1 answer

Smoothed Moments as Function of Predictor

Setup Let $x$ describe a continuous predictor variable (e.g. age). Let $Y$ be a random variable (e.g. height) which is some function of $x$. The data consists of $n$ points, each a combination of $x$ and $y$ (e.g. $data_i = (age_i, height_i)$). The…
LBogaardt
  • 494
  • 1
  • 4
  • 18
6
votes
2 answers

Overdispersed poisson or negative binomial regression

I am performing a GLM on count data (insurance claims) and I wish to compare Overdispersed Poisson Regression (ODP) against Negative Binomial regression. would know whether there is a practical index (AIC, logLik) that in standard R could support…
1
2 3 4 5 6 7