Package BayesCR. September 11, 2017

Similar documents
Package FMsmsnReg. March 30, 2016

Package ssmn. R topics documented: August 9, Type Package. Title Skew Scale Mixtures of Normal Distributions. Version 1.1.

Package bayeslongitudinal

Package TVsMiss. April 5, 2018

Package TBSSurvival. January 5, 2017

Package TBSSurvival. July 1, 2012

Package Bergm. R topics documented: September 25, Type Package

Package clusternomics

Package datasets.load

Package SSLASSO. August 28, 2018

Package ECctmc. May 1, 2018

Package tuts. June 12, 2018

Package ANOVAreplication

Package visualize. April 28, 2017

Package bayesdccgarch

Package Kernelheaping

Package sparsereg. R topics documented: March 10, Type Package

Package intccr. September 12, 2017

Package OsteoBioR. November 15, 2018

Package mfa. R topics documented: July 11, 2018

Package spark. July 21, 2017

Package simsurv. May 18, 2018

Package BAMBI. R topics documented: August 28, 2017

Package sspse. August 26, 2018

Package StVAR. February 11, 2017

Package texteffect. November 27, 2017

Package bisect. April 16, 2018

Package freeknotsplines

Package SeleMix. R topics documented: November 22, 2016

Package Kernelheaping

Package libstabler. June 1, 2017

Package DCEM. September 30, 2018

Package glmmml. R topics documented: March 25, Encoding UTF-8 Version Date Title Generalized Linear Models with Clustering

Package rbugs. February 20, 2015

Package bsam. July 1, 2017

Package pwrab. R topics documented: June 6, Type Package Title Power Analysis for AB Testing Version 0.1.0

Package palmtree. January 16, 2018

Package flexcwm. May 20, 2018

Package bayesdp. July 10, 2018

Package mixphm. July 23, 2015

Package kirby21.base

Package tidylpa. March 28, 2018

Package manet. September 19, 2017

Package rpst. June 6, 2017

Package MIICD. May 27, 2017

Package CuCubes. December 9, 2016

Package cattonum. R topics documented: May 2, Type Package Version Title Encode Categorical Features

Package CompGLM. April 29, 2018

Package smicd. September 10, 2018

Package epitab. July 4, 2018

Package hergm. R topics documented: January 10, Version Date

Package GFD. January 4, 2018

Package ldbod. May 26, 2017

Package sensory. R topics documented: February 23, Type Package

Package bayescl. April 14, 2017

Package VarReg. April 24, 2018

Package glassomix. May 30, 2013

Package ICsurv. February 19, 2015

Package merror. November 3, 2015

Package sbrl. R topics documented: July 29, 2016

Package gpdtest. February 19, 2015

Markov Chain Monte Carlo (part 1)

Package jagsui. December 12, 2017

Package distdichor. R topics documented: September 24, Type Package

Package automl. September 13, 2018

Package CSclone. November 12, 2016

Package hypercube. December 15, 2017

Package RAMP. May 25, 2017

Package approximator

Package robustreg. R topics documented: April 27, Version Date Title Robust Regression Functions

Package beast. March 16, 2018

Package DSBayes. February 19, 2015

Package bmeta. R topics documented: January 8, Type Package

Package KRMM. R topics documented: June 3, Type Package Title Kernel Ridge Mixed Model Version 1.0 Author Laval Jacquin [aut, cre]

Package FPDclustering

rjags Introduction Parameters: How to determine the parameters of a statistical model

Package dalmatian. January 29, 2018

Package SafeBayes. October 20, 2016

Package acebayes. R topics documented: November 21, Type Package

Package DPBBM. September 29, 2016

Package caic4. May 22, 2018

Package svalues. July 15, 2018

Package EBglmnet. January 30, 2016

Package extweibquant

Package Rtsne. April 14, 2017

Package sfc. August 29, 2016

Package ggmcmc. August 29, 2016

Package MARX. June 16, 2017

Package mederrrank. R topics documented: July 8, 2015

Package alphastable. June 15, 2018

Package lira. October 27, 2017

Package citools. October 20, 2018

Package ipft. January 4, 2018

Package fastdummies. January 8, 2018

Package EMC. February 19, 2015

Package SEMrushR. November 3, 2018

Package gpr. February 20, 2015

Package estprod. May 2, 2018

Package OptimaRegion

Package mlvar. August 26, 2018

Transcription:

Type Package Package BayesCR September 11, 2017 Title Bayesian Analysis of Censored Regression Models Under Scale Mixture of Skew Normal Distributions Version 2.1 Author Aldo M. Garay <medina_garay@yahoo.com>, Monique B. Massuia <moniquemassuia@gmail.com>, Victor H. Lachos <hlachos@ime.unicamp.br>, Eraldo B. Anjos Filho <ebdaf1@de.ufpe.br> Maintainer Aldo M. Garay <medina_garay@yahoo.com> Propose a parametric fit for censored linear regression models based on SMSN distributions, from a Bayesian perspective. Also, generates SMSN random variables. Depends R(>= 3.4.1) License GPL-3 Encoding UTF-8 LazyData true NeedsCompilation no Repository CRAN RoxygenNote 6.0.1 Imports rootsolve, truncdist, mvtnorm, mnormt Date/Publication 2017-09-11 19:09:38 UTC R topics documented: Bayes.CR.......................................... 2 BayesCR.......................................... 3 motorettes.......................................... 4 rsmsn........................................... 5 Index 6 1

2 Bayes.CR Bayes.CR Bayesian Analysis of Censored Regression Models Under Scale Mixture of Skew Normal Distributions Bayes.CR Propose a parametric fit for censored linear regression models based on SMSN distributions, from a Bayesian perspective. Usage Bayes.CR(cc, x, y, cens = "left", dist = "Normal", criteria = "FALSE", influence = "FALSE", spacing = "NULL", prior = NULL, hyper = NULL, n.thin = 10, burnin = 100, n.iter = 2000, n.chains = 2, chain = "TRUE") Arguments cc x y cens dist criteria Vector of censoring indicators. For each observation: 0 if non-censored, 1 if censored. Matrix or vector of covariates. Vector of responses in case of right/left censoring. "left" for left censoring, "right" for right censoring. Distribution to be used: "Normal" for Normal model, "T" for Student-t model, "Slash" for slash model, "NormalC" for contaminated Normal model, "SN" for Skew-Normal model, "ST" for Skew-t model and "SSL" for Skew-Slash model. "TRUE" or "FALSE". Indicates if model selection criteria (LPML, DIC, EAIC, EBIC and WAIC) should be computed. influence "TRUE" or "FALSE". Indicates if the divergence measures (KL divergence, J, L and Chi Distance) should be computed. spacing prior hyper n.thin burnin n.iter Should only be specified if at least one of "influence" or "criteria" is TRUE. This is the lag between observations of the final chain (after burn-in and thinning) used to compute these measures. If spacing=1, all the chain is used. Prior distribution to be used for the degrees of freedom under Student-t model: "Exp" for exponential distribution, "Jeffreys" for Jeffreys prior, "Unif" for Uniforme distribution and "Hierar" for Hierarchical prior (exponential with a parameter that follows a uniform distribution). Must be "NULL" for other models. Value of hyperparameter for the exponential prior. Must not be provided in case of others prior distributions. Lag for posterior sample. Burn-in for posterior sample. The number of iterations to be considered (before burnin and thinning). n.chains The number of chains to be considered. It must be less than 5. chain If "TRUE", all the posterior chains are stored for posterior analysis.

BayesCR 3 Details Specification of the priors distributions is given in reference papers (Garay et. al 2013 and Cancho et. al 2010). See Gelman et. al for the difference between the two versions of WAIC criterion. Calculations under the Skew-slash model may take a while, as it involves numerical integrations - you may want to specify big values to "spacing" under this model. For the Contaminated Normal model, a observation y comes from a normal distribution with mean "x beta" and variance "sigma2/rho" with probabilty "nu" and comes from a normal distribution with mean "x beta" and variance "sigma2" with probability 1-"nu". Value Mean Posterior mean for the parameters. Sd Standard deviations for the parameters. HPD HPD(95%) interval for the parameters. LPML Log-marginal pseudo likelihood for model selection. DIC DIC criterion for model selection. EAIC EAIC criterion for model selection. EBIC EBIC criterion for model selection. WAIC1 First version of Watanabe-Akaike information criterion. WAIC2 Second version of Watanabe-Akaike information criterion. See Also rsmsn, motorettes ##Load the data data(motorettes) attach(motorettes) ##Set design matrix x <- cbind(1,x) ##Fits a right censored normal model Normal <- Bayes.CR(cc,x,y,cens="right",dist="Normal",n.thin=10,burnin=200,n.iter=800, n.chains=1,chain="true") BayesCR BayesCR: Bayesian Analysis of Censored Regression Models Under Scale Mixture of Skew Normal Distributions Propose a parametric fit for censored linear regression models based on SMSN distributions, from a Bayesian perspective. Also, generates SMSN random variables.

4 motorettes Author(s) Aldo M. Garay <medina_garay@yahoo.com>, Monique B. Massuia <moniquemassuia@gmail.com>, Victor H. Lachos <hlachos@ime.unicamp.br> and Eraldo B. Anjos Filho <ebdaf1@de.ufpe.br> Maintainer: Aldo M. Garay <medina_garay@yahoo.com> References Monique B. Massuia, Aldo M. Garay, Celso R. Cabral and Victor H. Lachos. "Bayesian analysis of censored linear regression models with scale mixtures of skew-normal distributions". Statistics and Its Interface, 2017, vol. 10, pages 425-439 See Also Bayes.CR, rsmsn, motorettes motorettes Accelerated Life Tests On Electrical Insulation Accelerated life tests on electrical insulation in motorettes with censoring times. Usage motorettes Format A data frame with 40 observed times of life tests on electrical insulation in motorettes at four different temperatures (150C, 170c, 190c and 200c). y corresponds to log10 of the failure time (or end of study time, in case of right censored observations), x corresponds to (100/(temperature + 273.2)) and cc is a indicator of censoring (1 if censored, 0 if not). Source Tan, M., Tian, G. L. and Ng, K. W. (2009). Bayesian Missing Data Problems: EM, Data Augmentation and Noniterative Computation.

rsmsn 5 rsmsn Generate SMSN Random Variables Usage rsmsn Generate random variables with one of the following distributions: Normal, Student-t, Contaminated Normal, Slash, Skew-Normal, Skew-t and Skew-Slash. rsmsn(n, mu, sigma2, lambda, nu, dist) Arguments n mu sigma2 lambda nu dist Number of observations to be generated. Location parameter. Scale parameter. Shape parameter (control skewness). Only must be provided for Skew-Normal, Skew-t and Skew-Slash distributions. Degree of freedom. Must not be provided for Normal and Skew-Normal distribution. Must be a vector of length 2 for Contaminated-Normal distribution. Distribution to be used: "Normal" for Normal model, "T" for Student-t model, "Slash" for slash model, "NormalC" for contaminated Normal model, "SN" for Skew-Normal model, "ST" for Skew-t model and "SSL" for Skew-Slash model. Details If Y follows a Contaminated Normal model, than a observation y comes from a normal distribution with mean "mu"" and variance "sigma2/rho" with probabilty "nu" and comes from a normal distribution with mean "mu" and variace "sigma2" with probability "1-nu". See Also Bayes.CR, motorettes Examples # Generate a sample with 100 observations of a symmetric Student-t distribution sample <- rsmsn(n=100,mu=5,sigma2=2,lambda=0,nu=3,dist="t")

Index Topic datasets motorettes, 4 Bayes.CR, 2, 4, 5 BayesCR, 3 BayesCR-package (BayesCR), 3 motorettes, 3, 4, 4, 5 rsmsn, 3, 4, 5 6