78 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
0
votes
0
answers
61
views
Getting the CI for the mean (expectation) in GAMLSS() BEINF regression in newdata
I am modelling an health outcome, percentage days alive and out of hospital (%DAOH), with gamlss and family BEINF (zero-one-inflated beta). This outcome has point mass at 0 and 1, and clusters near ...
2
votes
0
answers
120
views
R GAMLSS : How to fit a log-logistic distribution (truncated)?
I'm trying to fit a log-logistic distribution (truncated) with GAMLSS and can't find how to do it.
In the documentation, it says that for Generalized Beta 2 (GB2) :
Setting ν = 1 and τ = 1 in (15.20) ...
0
votes
1
answer
95
views
combining 50th percentiles curve gamlss in one plot
I am a seasoned R programmer trying to help my friend to visualize percentile growth curves using gamlss. I have been successfully produce the curve for each group. Now the problem is she asked me to ...
0
votes
0
answers
73
views
GAMLSS - Error in seq.default(xl - deg * dx, xr + deg * dx, by = dx) : 'from' must be a finite number
I am using the R package GAMLSS to fit a GAM to illustrate the seasonality (by month) and trend (week_t number in a year) in a time series data (mydat)
Here is the code I ran:
fit_lss <- gamlss(...
0
votes
2
answers
537
views
Issue with saved GAMLSS model while predicting for new data
I have a GAMLSS trained model which I have saved using saveRDS() in .rda format.
For eg, I trained model as:
gamlss_model<- gamlss(res~pb(x)+pb(y), family=BCTo, data = test)
When I load the above ...
1
vote
0
answers
625
views
Generalized linear mixed effects model with one-inflated proportion data
I’ll preface this with I am NOT savvy with statistics, so I appreciate any help, especially in simple terms. I hope to understand and not just get the "correct" answer. I also admit I am most ...
1
vote
1
answer
237
views
How to estimate the standard error of the percentiles with gamlss::centiles.pred
I have fitted a model with
m0 <- lms(weight,age, data=df)
After, I use the model to predict percentiles for same ages:
newages <- c(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15)
centiles....
0
votes
1
answer
259
views
Using GAMLSS predictions within a wrapper function
I'm trying to write functions that wrap basic gamlss modeling (because I'm preparing a higher-level, application-specific package). But I've run into issues wrapping predict.
The example from the ...
0
votes
1
answer
49
views
qBCPEо with negative sigma values
I am trying to use qbcpeo to produce lower limit than normal for a gamless bcpe object, however, some of the sigma values (sigma link is log) yields negative value so when I attempt to use qbcpeo I ...
0
votes
0
answers
300
views
How to solve Error: C stack usage 15924528 is too close to the limit?
My shiny app works fine in the console, but when I clean the R environment and runApp(), I get Error: C stack usage 15924528 is too close to the limit.
One related post suggests to type 'ulimit -s ...
0
votes
0
answers
55
views
Pulling a specific output from a function using sapply?
I'm looking to run the fitDist function on columns in a dataframe using sapply and save the output to a dataframe, using something like the following:
data.frame(sapply(df, fitDist))
Run singularly, ...
0
votes
1
answer
166
views
how to get multinomial regression coefficients from gamlss
I am trying to fit a mixed effects multinomial model for my 4 level categorical outcome variable (y). I am using the gamlss function from gamlss package. The call looks like:
library(mixcat)
data(&...
1
vote
0
answers
74
views
R: unexpected behaviour of function (probably due to environmental scope of formula object within function)
Although a long time user of R, I have little experience to write complex programs in R. During one of my first tries, I experience a unexpected behavior of my code. Namely, if I try to run a function ...
0
votes
2
answers
37
views
Error in computing GAIC of linear model and other GLMs
my dataset can be found here: https://raw.githubusercontent.com/yuliaUU/test/main/test.csv
library(gamlss)
library(tidyverse)
data_final<- read_csv("https://raw.githubusercontent.com/yuliaUU/...
yuliaUU's user avatar
- 1,743
0
votes
1
answer
52
views
How to bound centile curves for a censored distribution
I'm trying to fit centile curves for a censored gamma distribution. The censoring goes well I think, but when trying to make the percentile curves, I get the following result:
I tried the following ...