powered by
Discretised Beta Regression for Survey-Response Analysis
dbr( formula , data , control = dbr.control() , yunique = NULL , wghts = rep(1, nrow(data)) ) dbr.control( nsmp = 100 , nburnin = 50 , estimate_left_buffer = FALSE , estimate_right_buffer = FALSE , buffer_max = 5.0 )
An object of class dbr, which is a list containing the following fields:
dbr
Same as input.
An internal object containing estimation results. Should not be accessed directly by user. Use summary and predict instead.
summary
predict
Standard R formula describing the response variable and predictors.
R
Data frame containing response and predictors as described in formula.
formula
List of parameters for controlling the MCMC estimation.
Vector of values/levels that the response variable can assume. If not specified, this will be extracted from the data according to the formula.
data
Vector of weights to be applied during model estimation. Default is a uniform weight vector.
Number of MCMC samples to collect, including the burnin phase.
Number of initial MCMC samples to discard before calculating parameter estimates.
Boolean flag indicating whether to estimate a left buffer from the data.
Boolean flag indicating whether to estimate a right buffer from the data.
Maximum size of left/right buffer, only used if above flags are set to TRUE.
Mansour T.A. Sharabiani, Alireza S. Mahani
summary.dbr, predict.dbr
summary.dbr
predict.dbr
library("DBR") data("pain") est <- dbr( interference ~ severity + age , pain , control = dbr.control( nsmp = 50 , nburnin = 25 ) )
Run the code above in your browser using DataLab