This function fits a beta binomial regression model where both the mean and standard deviation of the response variable are modeled as polynomial functions of the predictor variable. While 'cnorm-betabinomial2' fits a beta-binomial model on the basis of \(\gamma\) and \(\beta\) of a beta binomial function, this function fits \(\mu\) and \(\sigma\), which are then used to estimate the beta binomial distribution parameters.
cnorm.betabinomial1(
age,
score,
n = NULL,
weights = NULL,
mu = 3,
sigma = 3,
control = NULL,
scale = "T",
plot = T
)
A list of class "cnormBetaBinomial" containing:
Estimated coefficients for the mean model
Estimated coefficients for the log-standard deviation model
Standard errors of the estimated coefficients
Degree of the polynomial for the mean model
Degree of the polynomial for the standard deviation model
Full result from the optimization procedure
A numeric vector of predictor values (e.g., age).
A numeric vector of response values.
Number of items in the test, resp. maximum score to be achieved
A numeric vector of weights for each observation. Default is NULL (equal weights).
Integer specifying the degree of the polynomial for the mean model. Default is 2.
Integer specifying the degree of the polynomial for the standard deviation model. Default is 1.
A list of control parameters to be passed to the `optim` function. If NULL, default values are used.
type of norm scale, either T (default), IQ, z or percentile (= no transformation); a double vector with the mean and standard deviation can as well, be provided f. e. c(10, 3) for Wechsler scale index points
Logical indicating whether to plot the model. Default is TRUE.
The function standardizes the input variables, fits polynomial models for both the mean and standard deviation, and uses maximum likelihood estimation to find the optimal parameters. The optimization is performed using the BFGS method.