The GLMMGibbs Package

Size: px
Start display at page:

Download "The GLMMGibbs Package"

Transcription

1 The GLMMGibbs Package April 22, 2002 Version Author Jonathan Myles and David Clayton Maintainer Jonathan Myles Depends R (>= 1.0) Date 2001/22/01 Title Generalised Linear Mixed Models by Gibbs Sampling Generalised Linear Mixed Models are an extension of Generalised Linear Models to include non-independent responses. This package allows them to be fitted by including functions for declaring factors to be random effects, for fitting models and generic functions for examining the fits. License GPL version 2 or later R topics documented: Ra ordinal.end bugs.out coda.object epil.bugs glmm model.init add.block plot.glmmfit print.glmmfit rtparse sampled.values scottish.lip.cancer seeds Index 12 1

2 2 Ra Ra Create Random Factor Create a random factor to be used in the glmm function for fitting generalised linear mixed models by Gibbs sampling Ra(data, shape=0.001, scale=0.001, type="identity", contrast="identity", map="none", zlevel=1, of.interest=false) data shape scale type type map of.interest The values of the factor which is to be declared random. The shape parameter of the gamma prior distribution to be placed on the hyperparameter. The scale parameter of the gamma prior distribution to be placed on the hyperparameter. The type of random effect. Current possible options are "identity" which creates an exchangeable random effect, "adj.map" which creates a spatially smoothed effect, assuming the levels to represent the values of the effect. The default value is "identity". A character string representing the way in which the factor is to be encoded in the model matrix. The possible values are "identity", which causes a dummy coding to be used, "treatment" which causes a coding which sets the first level of the factor to zero, sum which forces the effects to sum to zero, and helmert the S-plus default coding mechanism. If the factor is defined to be of type adj.map, the full path name to a file containing information about which levels of the factor represent adjacent regions, in a format described below. if TRUE, all values of each level of the effect are output during the keep phase of sampling (see the instructions for glmm below). If FALSE, only the sampled values of the hyperparameter are kept. Ra returns an a factor, which when included in the model passed to the glmm function, is treated as a random effect. The effect values have a multivariate normal prior with mean zero and a covariance matrix which depends on the type of random effect and the parameterisation being used. Its inverse is the product of a fixed matrix and a random scalar hyperparameter, which has a gamma prior distribution with given shape and scale parameters. Value Full details are given in the document GLMMGibbs: An R Package for Estimating Bayesian Generalised Linear Mixed Models by Gibbs Sampling, supplied with this package. A value of class factor, but with additional attributes.

3 ordinal.end 3 Note if the factor is set to be of type adj.map, the argument mapfile must be set to the name of a file which describes which areas are adjacent to which. The format of the file is as follows: each area should be assigned a number, and the file should then have successive lines representing the consecutive areas, each consisting of the number of neighbours of the area, followed by a colon, followed by the numbers of the neighbouring areas, followed by a Thus, for example, if area 1 has three neighbours, numbered 7, 11, and 12, the first line of the file should be: 3:7,11,12 Compare the file scotland.adj with the data given in the document GLMMGibbs: An R Package for Estimating Bayesian Generalised Linear Mixed Models by Gibbs Sampling, supplied with this package, for a further example. Author(s) Jonathan Myles, Imperial Cancer Research Fund, and David Clayton, Wellcome Trust mylesj@icrf.icnet.uk References Clayton, D.G. (1996) Generalized Linear Mixed Models in PhMarkov chain Monte Carlo in Practice, ed. Gilks, W. R. and Richardson, S. and and Spiegelhalter, D. J., Chapman & Hall. glmm ordinal.end The ordinal end of an expression An internal function of the GLMMGibbs package bugs.out Write Glmm Fit To Bugs Output Files bugs.out writes out the returned value from a call to the glmm function to two files, with extensions.ind and.out, in BUGS output format. bugs.out(g,file)

4 4 coda.object g file The result of a call to the glmm function, an object of class glmmfit. The primary filename of the files to which the the object is to be written. The sampled values and parameter names of the fitted model object are written to two files, "filemame.ind" and "filename.out", where "filename" is the value of the character object argument file. The format of these files is described in the section Using CODA and BOA with the output of glmm of the document GLMMGibbs: An R Package for Estimating Bayesian Generalised Linear Mixed Models by Gibbs Sampling, supplied with this package. Author(s) Jonathan Myles, Imperial Cancer Research Fund, and David Clayton, Wellcome Trust mylesj@icrf.icnet.uk glmm, plot.glmm, print.glmm coda.object Convert Glmm Output For Use With CODA Convert the result of a glmm fit for use with the CODA package rcoda.object(g) g The returned value from a call to the glmm function, an object of class glmmfit. Value CODA is a package which can be used to check the convergence of output produced by the BUGS program. The rcoda.object function converts an object returned by a call to the glmm into an object which can be used with the CODA package. The glmm function yielding g must have been called with the argument store.results set to TRUE. an object of class mcmc, which can be passed to functions in the CODA library Author(s) Jonathan Myles, Imperial Cancer Research Fund, and David Clayton, Wellcome Trust mylesj@icrf.icnet.uk

5 glmm 5 References glmm epil.bugs Results of a Clinical trial of Progadine The dataset describes the results of the pre-crossover phase of a crossover trial of the effects of progadine, an anti-epileptic drug. Patients were assigned blindly and at random to receive either the drug or a placebo in addition to standard chemotherapy. Each patient visited the trial centre on four subsequent occasions, on each of which the number of seizures in the previous two weeks was recorded. Also recorded was the patient s age, whether they were on treatment or placebo and the number of seizures suffered in the two-week period before the trial (known as the baseline seizures). The data is stored in the same format as in the BUGS example book data(epil.bugs) Format [,1] y numeric(236) number of seizures (one observation per visit) [,2] Trt numeric(59) whether the patient received Progadine (=1) or placebo (=0) (one observation per [,3] Base numeric(59) number of baseline seizures (one observation per patient) [,4] Age numeric(59) Age (one observation per patient) Source Thall, P. F. and Vail, S. C. 1990, Some covariance models for longitudinal count data with overdispersion Biometrics, pages , volume 46. glmm GLMMs By Gibbs Sampling glmm estimates the posterior distribution of the fixed effects of a Generalised Linear Mixed Model. It also estimates the hyperparameter related to each random effect, and the effect values of each random effect declared to be of interest by function Ra.

6 6 glmm glmm(formula, family, data, weights, offset, icm = 50, burnin = 1000, keep = 1000, model.show = FALSE, progress.info = 0, store.results = FALSE, thin = 1, bugsfile, seed1 = 6762, seed2 = 92928, seed3 = 19729) formula family data weights icm burnin keep thin model.show progress.info The model formula for the model to be fitted. A description of the error distribution and link function to be used. At present the available options are "binomial" and "poisson". The canonical link must always be used, so there is no link argument. The name of a data frame in which the data is stored. (at present, the function can only be used with the data in a data frame) A vector of weights. The number of steps of deterministic maximisation of the posterior distribution by the Iterative Conditional Mode algorithm before sampling begins. All hyperparameters are fixed to 1.0. The number of steps of Gibbs sampling taken before storage of the parameter values begins. The number of steps of Gibbs sampling taken once storage of the parameter values has begun. An integer t specifying that one storage of the parameter values has begun every (t) th iteration is saved A debugging argument used by he developers which will be deleted at the final release. If an integer, n say, the functions reports when every n iterations have been carried out bugsfile A character string. If not missing, the function creates two files, with this string their primary filenames and.ind and.out their secondary filenames (extensions).these contain the output in BUGS format. store.results seed1 seed2 seed3 Value if TRUE, returns the sampled values of the parameters (see Value below) The first of three seeds supplied to the Random Number Generator used by the underlying C code The second seed. The third seed. Generalised Linear Mixed Models (GLMMs) are an extension of GLMs with the addition of random effects given whose values the response values are conditionally independent. The function glmm fits these models in a Bayesian paradigm by Gibbs sampling. Full details are given in the document GLMMGibbs: An R Package for Estimating Bayesian Generalised Linear Mixed Models by Gibbs Sampling, supplied with this package. an object of class glmmfit, which contains the sample statistics of the sampled values and, if the store.results argument is set to TRUE, the sampled values themselves.

7 model.init 7 Note GLMMgibbs (the package from which glmm comes) is a beta release and we strongly recommend the use of save.image() before glmm() is used Author(s) Jonathan Myles, Imperial Cancer Research Fund, and David Clayton, Wellcome Trust mylesj@icrf.icnet.uk References Clayton, D.G. (1996) Generalized Linear Mixed Models in Markov chain Monte Carlo in Practice, ed. Gilks, W. R. and Richardson, S. and Spiegelhalter, D. J., Chapman & Hall. Ra, plot.glmm, print.glmm model.init Initialise a GLMM An internal function of the GLMMGibbs package add.block Add a block to a C Structure GLMM An internal function of the GLMMGibbs package plot.glmmfit Plot Result Of Glmm Fit Plot either the trace plots, the histograms, or both, of the sampled values for parameters of interest in a model fitted by glmm plot.glmmfit(g, parameters, type = "b", hscale = "b", plots.per.page = 4, postscript)

8 8 print.glmmfit g parameters type The result of a call to the glmm function, an object of class glmmfit. A vector of character strings giving names parameters in the model. If not missing, only sampled values for these parameters are plotted. If missing, sampled values for all parameters of interest are plotted. A character, determining which type of plot is given. If "t", "T", trace or Trace a trace plot is made. If "h", "H", "hist" or "Hist" a histogram is plotted. If "b", "B", "both" or "Both" both plots are made, side by side, with the trace plot on the left and the histogrm on the right. Default is "b". hscale A character, determining the scale on which scale sampled values of hyperparameter values are plotted. If "t", "T", "tau" or "Tau" sampled values are plotted on the tau scale. If "s", "S" "sigma" or "Sigma" values are plotted on the sigma scale. If "b", "B", "both" or "Both", sampled values are plotted on both scales. Default is "b". plots.per.page The number of variables plotted per page of output. Default is 4. postscript A character string. If it is not missing and takes the value "file", say, the output is written to files "file_page1.ps", "file_page2.ps", etc. The sampled values of some or all of the parameters of interest in a model fitted by the glmm function are plotted out. The parameters for which values are plotted, whether trace plots, histograms, or both are plotted, the scale on which hyperparameter values are plotted, the number of variables plotted per page and whether the plots are made to the screen or to postscript files are all decided by the arguments to the function Author(s) Jonathan Myles, Imperial Cancer Research Fund, and David Clayton, Wellcome Trust mylesj@icrf.icnet.uk glmm print.glmmfit Print Result Of Glmm Fit Print out information about a glmm fit. print.glmm(g) g The result of a call to the glmm function, an object of class glmmfit.

9 rtparse 9 The call made, the number of steps, and the sample statistics (mean, standard deviation, and 2.5, 25, 50, 75 and 97.5) of all the parameters of interest in the model are printed out. Sample statistics for hyperparameters are plotted on both the tau and sigma scales. Author(s) Jonathan Myles, Imperial Cancer Research Fund, and David Clayton, Wellcome Trust mylesj@icrf.icnet.uk glmm rtparse Parse a terms expression into blocks An internal function of the GLMMGibbs package sampled.values Sampled Values from a glmm fit Returns a vector consisting of the sampled values from an object returned from a call to the glmm function sampled.values(g,parameter.name) gthe result of a call to the glmm function, an object of class glmmfit. parameter.name The name of a parameter in the model The function takes and object g, the returned value of a call to the glmm function, and the name of a parameter in the model fitted, and returns a vector of the sampled values. The glmm function yielding g must have been called with the argument store.results set to TRUE. glmm

10 10 seeds scottish.lip.cancer Cases of Lip Cancer in Scottish Counties The number of cases of lip cancer registered in each of the 56 (pre-reoreganisation) counties of Scotland, together with the expected number of cases given the age-sex structure of the population and the percentege of workers employed in the agriculture, forestry and fishing industries. data(scottish.lip.cancer) Format [,1] observed numeric Number of oases [,2] expected numeric expected number of cases [,3] AFF numeric percentage of workers employed in AFF Source Breslow, N.E. and Clayton, D.G,. (1993) Approximate inference in generalized linear mixed models J. Amer. Statistical Association pages 9-25, volume 88 seeds Seeds germinating in a factorial experiment This data set gives the number of seeds germinating in different plates of a factorial experiment, together with the total number of seeds in each plate, the seed variety and the root type data(seeds) Format [,1] r numeric Number of seeds germinating [,2] n numeric Total number of seeds on plate [,3] x1 numeric seed variety, (0 = O. aegyptiaco 75, 1 = O. aegyptiaco 73) [,4] x2 numeric Root type (0 = bean, 1 = cucumber)

11 seeds 11 Source Crowder, M.J. (1978) Beta-Binomial ANOVA for Proportions Applied Statistics-J. Royal Statistical Soc. Series C page 34-37, volume 27

12 Index Topic datasets scottish.lip.cancer, 10 seeds, 10 Topic models add.block, 7 bugs.out, 3 coda.object, 4 glmm, 5 model.init, 7 ordinal.end, 3 plot.glmmfit, 7 print.glmmfit, 8 Ra, 1 rtparse, 9 sampled.values, 9 add.block, 7 bugs.out, 3 coda.object, 4 epil.bugs, 5 glmm, 3, 4, 5, 8, 9 model.init, 7 ordinal.end, 3 plot.glmm, 4, 7 plot.glmmfit, 7 print.glmm, 4, 7 print.glmmfit, 8 Ra, 1, 7 rtparse, 9 sampled.values, 9 scottish.lip.cancer, 10 seeds, 10 12

A GENERAL GIBBS SAMPLING ALGORITHM FOR ANALYZING LINEAR MODELS USING THE SAS SYSTEM

A GENERAL GIBBS SAMPLING ALGORITHM FOR ANALYZING LINEAR MODELS USING THE SAS SYSTEM A GENERAL GIBBS SAMPLING ALGORITHM FOR ANALYZING LINEAR MODELS USING THE SAS SYSTEM Jayawant Mandrekar, Daniel J. Sargent, Paul J. Novotny, Jeff A. Sloan Mayo Clinic, Rochester, MN 55905 ABSTRACT A general

More information

Package mcemglm. November 29, 2015

Package mcemglm. November 29, 2015 Type Package Package mcemglm November 29, 2015 Title Maximum Likelihood Estimation for Generalized Linear Mixed Models Version 1.1 Date 2015-11-28 Author Felipe Acosta Archila Maintainer Maximum likelihood

More information

Package simsurv. May 18, 2018

Package simsurv. May 18, 2018 Type Package Title Simulate Survival Data Version 0.2.2 Date 2018-05-18 Package simsurv May 18, 2018 Maintainer Sam Brilleman Description Simulate survival times from standard

More information

Journal of Statistical Software

Journal of Statistical Software JSS Journal of Statistical Software December 2007, Volume 23, Issue 9. http://www.jstatsoft.org/ WinBUGSio: A SAS Macro for the Remote Execution of WinBUGS Michael K. Smith Pfizer Global Research and Development

More information

BAYESIAN OUTPUT ANALYSIS PROGRAM (BOA) VERSION 1.0 USER S MANUAL

BAYESIAN OUTPUT ANALYSIS PROGRAM (BOA) VERSION 1.0 USER S MANUAL BAYESIAN OUTPUT ANALYSIS PROGRAM (BOA) VERSION 1.0 USER S MANUAL Brian J. Smith January 8, 2003 Contents 1 Getting Started 4 1.1 Hardware/Software Requirements.................... 4 1.2 Obtaining BOA..............................

More information

Package DPBBM. September 29, 2016

Package DPBBM. September 29, 2016 Type Package Title Dirichlet Process Beta-Binomial Mixture Version 0.2.5 Date 2016-09-21 Author Lin Zhang Package DPBBM September 29, 2016 Maintainer Lin Zhang Depends R (>= 3.1.0)

More information

Analysis of Incomplete Multivariate Data

Analysis of Incomplete Multivariate Data Analysis of Incomplete Multivariate Data J. L. Schafer Department of Statistics The Pennsylvania State University USA CHAPMAN & HALL/CRC A CR.C Press Company Boca Raton London New York Washington, D.C.

More information

Linear Modeling with Bayesian Statistics

Linear Modeling with Bayesian Statistics Linear Modeling with Bayesian Statistics Bayesian Approach I I I I I Estimate probability of a parameter State degree of believe in specific parameter values Evaluate probability of hypothesis given the

More information

Semiparametric Mixed Effecs with Hierarchical DP Mixture

Semiparametric Mixed Effecs with Hierarchical DP Mixture Semiparametric Mixed Effecs with Hierarchical DP Mixture R topics documented: April 21, 2007 hdpm-package........................................ 1 hdpm............................................ 2 hdpmfitsetup........................................

More information

Package bsam. July 1, 2017

Package bsam. July 1, 2017 Type Package Package bsam July 1, 2017 Title Bayesian State-Space Models for Animal Movement Version 1.1.2 Depends R (>= 3.3.0), rjags (>= 4-6) Imports coda (>= 0.18-1), dplyr (>= 0.5.0), ggplot2 (>= 2.1.0),

More information

Package BayesPeak. R topics documented: September 21, Version Date Title Bayesian Analysis of ChIP-seq Data

Package BayesPeak. R topics documented: September 21, Version Date Title Bayesian Analysis of ChIP-seq Data Package BayesPeak September 21, 2014 Version 1.16.0 Date 2009-11-04 Title Bayesian Analysis of ChIP-seq Data Author Christiana Spyrou, Jonathan Cairns, Rory Stark, Andy Lynch,Simon Tavar\{}\{}'{e}, Maintainer

More information

Package sspse. August 26, 2018

Package sspse. August 26, 2018 Type Package Version 0.6 Date 2018-08-24 Package sspse August 26, 2018 Title Estimating Hidden Population Size using Respondent Driven Sampling Data Maintainer Mark S. Handcock

More information

R package mcll for Monte Carlo local likelihood estimation

R package mcll for Monte Carlo local likelihood estimation R package mcll for Monte Carlo local likelihood estimation Minjeong Jeon University of California, Berkeley Sophia Rabe-Hesketh University of California, Berkeley February 4, 2013 Cari Kaufman University

More information

Markov Chain Monte Carlo (part 1)

Markov Chain Monte Carlo (part 1) Markov Chain Monte Carlo (part 1) Edps 590BAY Carolyn J. Anderson Department of Educational Psychology c Board of Trustees, University of Illinois Spring 2018 Depending on the book that you select for

More information

Package Canopy. April 8, 2017

Package Canopy. April 8, 2017 Type Package Package Canopy April 8, 2017 Title Accessing Intra-Tumor Heterogeneity and Tracking Longitudinal and Spatial Clonal Evolutionary History by Next-Generation Sequencing Version 1.2.0 Author

More information

DPP: Reference documentation. version Luis M. Avila, Mike R. May and Jeffrey Ross-Ibarra 17th November 2017

DPP: Reference documentation. version Luis M. Avila, Mike R. May and Jeffrey Ross-Ibarra 17th November 2017 DPP: Reference documentation version 0.1.2 Luis M. Avila, Mike R. May and Jeffrey Ross-Ibarra 17th November 2017 1 Contents 1 DPP: Introduction 3 2 DPP: Classes and methods 3 2.1 Class: NormalModel.........................

More information

Bayesian Modelling with JAGS and R

Bayesian Modelling with JAGS and R Bayesian Modelling with JAGS and R Martyn Plummer International Agency for Research on Cancer Rencontres R, 3 July 2012 CRAN Task View Bayesian Inference The CRAN Task View Bayesian Inference is maintained

More information

Package DSBayes. February 19, 2015

Package DSBayes. February 19, 2015 Type Package Title Bayesian subgroup analysis in clinical trials Version 1.1 Date 2013-12-28 Copyright Ravi Varadhan Package DSBayes February 19, 2015 URL http: //www.jhsph.edu/agingandhealth/people/faculty_personal_pages/varadhan.html

More information

CS281 Section 9: Graph Models and Practical MCMC

CS281 Section 9: Graph Models and Practical MCMC CS281 Section 9: Graph Models and Practical MCMC Scott Linderman November 11, 213 Now that we have a few MCMC inference algorithms in our toolbox, let s try them out on some random graph models. Graphs

More information

1. Start WinBUGS by double clicking on the WinBUGS icon (or double click on the file WinBUGS14.exe in the WinBUGS14 directory in C:\Program Files).

1. Start WinBUGS by double clicking on the WinBUGS icon (or double click on the file WinBUGS14.exe in the WinBUGS14 directory in C:\Program Files). Hints on using WinBUGS 1 Running a model in WinBUGS 1. Start WinBUGS by double clicking on the WinBUGS icon (or double click on the file WinBUGS14.exe in the WinBUGS14 directory in C:\Program Files). 2.

More information

Package flexcwm. May 20, 2018

Package flexcwm. May 20, 2018 Type Package Title Flexible Cluster-Weighted Modeling Version 1.8 Date 2018-05-20 Author Mazza A., Punzo A., Ingrassia S. Maintainer Angelo Mazza Package flexcwm May 20, 2018 Description

More information

Ludwig Fahrmeir Gerhard Tute. Statistical odelling Based on Generalized Linear Model. íecond Edition. . Springer

Ludwig Fahrmeir Gerhard Tute. Statistical odelling Based on Generalized Linear Model. íecond Edition. . Springer Ludwig Fahrmeir Gerhard Tute Statistical odelling Based on Generalized Linear Model íecond Edition. Springer Preface to the Second Edition Preface to the First Edition List of Examples List of Figures

More information

Package LCMCR. R topics documented: July 8, 2017

Package LCMCR. R topics documented: July 8, 2017 Package LCMCR July 8, 2017 Type Package Title Bayesian Non-Parametric Latent-Class Capture-Recapture Version 0.4.3 Date 2017-07-07 Author Daniel Manrique-Vallier Bayesian population size estimation using

More information

The glmmml Package. August 20, 2006

The glmmml Package. August 20, 2006 The glmmml Package August 20, 2006 Version 0.65-1 Date 2006/08/20 Title Generalized linear models with clustering A Maximum Likelihood and bootstrap approach to mixed models. License GPL version 2 or newer.

More information

Issues in MCMC use for Bayesian model fitting. Practical Considerations for WinBUGS Users

Issues in MCMC use for Bayesian model fitting. Practical Considerations for WinBUGS Users Practical Considerations for WinBUGS Users Kate Cowles, Ph.D. Department of Statistics and Actuarial Science University of Iowa 22S:138 Lecture 12 Oct. 3, 2003 Issues in MCMC use for Bayesian model fitting

More information

Overview. Monte Carlo Methods. Statistics & Bayesian Inference Lecture 3. Situation At End Of Last Week

Overview. Monte Carlo Methods. Statistics & Bayesian Inference Lecture 3. Situation At End Of Last Week Statistics & Bayesian Inference Lecture 3 Joe Zuntz Overview Overview & Motivation Metropolis Hastings Monte Carlo Methods Importance sampling Direct sampling Gibbs sampling Monte-Carlo Markov Chains Emcee

More information

PIANOS requirements specifications

PIANOS requirements specifications PIANOS requirements specifications Group Linja Helsinki 7th September 2005 Software Engineering Project UNIVERSITY OF HELSINKI Department of Computer Science Course 581260 Software Engineering Project

More information

Journal of Statistical Software

Journal of Statistical Software JSS Journal of Statistical Software May 2005, Volume 14, Issue 5. http://www.jstatsoft.org/ BugsXLA: Bayes for the Common Man Phil Woodward Pfizer Global Research and Development Abstract The absence of

More information

Package BGPhazard. R topics documented: February 11, Version Date

Package BGPhazard. R topics documented: February 11, Version Date Version 1.2.3 Date 2016-02-11 Package BGPhazard February 11, 2016 Title Markov Beta and Gamma Processes for Modeling Hazard Rates Author L. E. Nieto-Barajas and J. A. Garcia Bueno Maintainer Jose Antonio

More information

Package swcrtdesign. February 12, 2018

Package swcrtdesign. February 12, 2018 Package swcrtdesign February 12, 2018 Type Package Title Stepped Wedge Cluster Randomized Trial (SW CRT) Design Version 2.2 Date 2018-2-4 Maintainer Jim Hughes Author Jim Hughes and Navneet

More information

STATISTICS (STAT) Statistics (STAT) 1

STATISTICS (STAT) Statistics (STAT) 1 Statistics (STAT) 1 STATISTICS (STAT) STAT 2013 Elementary Statistics (A) Prerequisites: MATH 1483 or MATH 1513, each with a grade of "C" or better; or an acceptable placement score (see placement.okstate.edu).

More information

BUGS: Language, engines, and interfaces

BUGS: Language, engines, and interfaces BUGS: Language, engines, and interfaces Patrick Breheny January 17 Patrick Breheny BST 701: Bayesian Modeling in Biostatistics 1/18 The BUGS framework The BUGS project (Bayesian inference using Gibbs Sampling)

More information

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

Package Bergm. R topics documented: September 25, Type Package Type Package Package Bergm September 25, 2018 Title Bayesian Exponential Random Graph Models Version 4.2.0 Date 2018-09-25 Author Alberto Caimo [aut, cre], Lampros Bouranis [aut], Robert Krause [aut] Nial

More information

Package ANOVAreplication

Package ANOVAreplication Type Package Version 1.1.2 Package ANOVAreplication September 30, 2017 Title Test ANOVA Replications by Means of the Prior Predictive p- Author M. A. J. Zondervan-Zwijnenburg Maintainer M. A. J. Zondervan-Zwijnenburg

More information

Package mtsdi. January 23, 2018

Package mtsdi. January 23, 2018 Version 0.3.5 Date 2018-01-02 Package mtsdi January 23, 2018 Author Washington Junger and Antonio Ponce de Leon Maintainer Washington Junger

More information

G-PhoCS Generalized Phylogenetic Coalescent Sampler version 1.2.3

G-PhoCS Generalized Phylogenetic Coalescent Sampler version 1.2.3 G-PhoCS Generalized Phylogenetic Coalescent Sampler version 1.2.3 Contents 1. About G-PhoCS 2. Download and Install 3. Overview of G-PhoCS analysis: input and output 4. The sequence file 5. The control

More information

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

rjags Introduction Parameters: How to determine the parameters of a statistical model January 25, 207 File = E:\inet\p548\demo.04-2.rjags.intro.docm John Miyamoto (email: jmiyamot@uw.edu) Psych 548: Bayesian Statistics, Modeling & Reasoning Winter 207 Course website: http://faculty.washington.edu/jmiyamot/p548/p548-set.htm

More information

Bayesian Estimation for Skew Normal Distributions Using Data Augmentation

Bayesian Estimation for Skew Normal Distributions Using Data Augmentation The Korean Communications in Statistics Vol. 12 No. 2, 2005 pp. 323-333 Bayesian Estimation for Skew Normal Distributions Using Data Augmentation Hea-Jung Kim 1) Abstract In this paper, we develop a MCMC

More information

Approximate Bayesian Computation. Alireza Shafaei - April 2016

Approximate Bayesian Computation. Alireza Shafaei - April 2016 Approximate Bayesian Computation Alireza Shafaei - April 2016 The Problem Given a dataset, we are interested in. The Problem Given a dataset, we are interested in. The Problem Given a dataset, we are interested

More information

Markov Random Fields and Gibbs Sampling for Image Denoising

Markov Random Fields and Gibbs Sampling for Image Denoising Markov Random Fields and Gibbs Sampling for Image Denoising Chang Yue Electrical Engineering Stanford University changyue@stanfoed.edu Abstract This project applies Gibbs Sampling based on different Markov

More information

Package atmcmc. February 19, 2015

Package atmcmc. February 19, 2015 Type Package Package atmcmc February 19, 2015 Title Automatically Tuned Markov Chain Monte Carlo Version 1.0 Date 2014-09-16 Author Jinyoung Yang Maintainer Jinyoung Yang

More information

Bayesian Robust Inference of Differential Gene Expression The bridge package

Bayesian Robust Inference of Differential Gene Expression The bridge package Bayesian Robust Inference of Differential Gene Expression The bridge package Raphael Gottardo October 30, 2017 Contents Department Statistics, University of Washington http://www.rglab.org raph@stat.washington.edu

More information

EXAMINATIONS OF THE ROYAL STATISTICAL SOCIETY

EXAMINATIONS OF THE ROYAL STATISTICAL SOCIETY EXAMINATIONS OF THE ROYAL STATISTICAL SOCIETY GRADUATE DIPLOMA, 2015 MODULE 4 : Modelling experimental data Time allowed: Three hours Candidates should answer FIVE questions. All questions carry equal

More information

Package StVAR. February 11, 2017

Package StVAR. February 11, 2017 Type Package Title Student's t Vector Autoregression (StVAR) Version 1.1 Date 2017-02-10 Author Niraj Poudyal Maintainer Niraj Poudyal Package StVAR February 11, 2017 Description Estimation

More information

A Short History of Markov Chain Monte Carlo

A Short History of Markov Chain Monte Carlo A Short History of Markov Chain Monte Carlo Christian Robert and George Casella 2010 Introduction Lack of computing machinery, or background on Markov chains, or hesitation to trust in the practicality

More information

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

Package sparsereg. R topics documented: March 10, Type Package Type Package Package sparsereg March 10, 2016 Title Sparse Bayesian Models for Regression, Subgroup Analysis, and Panel Data Version 1.2 Date 2016-03-01 Author Marc Ratkovic and Dustin Tingley Maintainer

More information

Clustering Relational Data using the Infinite Relational Model

Clustering Relational Data using the Infinite Relational Model Clustering Relational Data using the Infinite Relational Model Ana Daglis Supervised by: Matthew Ludkin September 4, 2015 Ana Daglis Clustering Data using the Infinite Relational Model September 4, 2015

More information

Package bayeslongitudinal

Package bayeslongitudinal Type Package Package bayeslongitudinal July 25, 2017 Title Adjust Longitudinal Regression Models Using Bayesian Methodology Version 0.1.0 Date 2017-07-18 Author Edwin Javier Castillo Carreño, Edilberto

More information

Package gibbs.met. February 19, 2015

Package gibbs.met. February 19, 2015 Version 1.1-3 Title Naive Gibbs Sampling with Metropolis Steps Author Longhai Li Package gibbs.met February 19, 2015 Maintainer Longhai Li Depends R (>=

More information

The GSM Package. August 9, 2007

The GSM Package. August 9, 2007 The GSM Package August 9, 2007 Title Gamma Shape Mixture This package implements a Bayesian approach for estimation of a mixture of gamma distributions in which the mixing occurs over the shape parameter.

More information

MCMC GGUM v1.2 User s Guide

MCMC GGUM v1.2 User s Guide MCMC GGUM v1.2 User s Guide Wei Wang University of Central Florida Jimmy de la Torre Rutgers, The State University of New Jersey Fritz Drasgow University of Illinois at Urbana-Champaign Travis Meade and

More information

Package r2d2. February 20, 2015

Package r2d2. February 20, 2015 Package r2d2 February 20, 2015 Version 1.0-0 Date 2014-03-31 Title Bivariate (Two-Dimensional) Confidence Region and Frequency Distribution Author Arni Magnusson [aut], Julian Burgos [aut, cre], Gregory

More information

Inference for Generalized Linear Mixed Models

Inference for Generalized Linear Mixed Models Inference for Generalized Linear Mixed Models Christina Knudson, Ph.D. University of St. Thomas October 18, 2018 Reviewing the Linear Model The usual linear model assumptions: responses normally distributed

More information

Package HKprocess. R topics documented: September 6, Type Package. Title Hurst-Kolmogorov process. Version

Package HKprocess. R topics documented: September 6, Type Package. Title Hurst-Kolmogorov process. Version Package HKprocess September 6, 2014 Type Package Title Hurst-Kolmogorov process Version 0.0-1 Date 2014-09-06 Author Maintainer Imports MCMCpack (>= 1.3-3), gtools(>= 3.4.1) Depends

More information

Computer vision: models, learning and inference. Chapter 10 Graphical Models

Computer vision: models, learning and inference. Chapter 10 Graphical Models Computer vision: models, learning and inference Chapter 10 Graphical Models Independence Two variables x 1 and x 2 are independent if their joint probability distribution factorizes as Pr(x 1, x 2 )=Pr(x

More information

Bayesian data analysis using R

Bayesian data analysis using R Bayesian data analysis using R BAYESIAN DATA ANALYSIS USING R Jouni Kerman, Samantha Cook, and Andrew Gelman Introduction Bayesian data analysis includes but is not limited to Bayesian inference (Gelman

More information

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

Package acebayes. R topics documented: November 21, Type Package Type Package Package acebayes November 21, 2018 Title Optimal Bayesian Experimental Design using the ACE Algorithm Version 1.5.2 Date 2018-11-21 Author Antony M. Overstall, David C. Woods & Maria Adamou

More information

Package gibbs.met documentation

Package gibbs.met documentation Version 1.1-2 Package gibbs.met documentation Title Naive Gibbs Sampling with Metropolis Steps Author Longhai Li of March 26, 2008 Maintainer Longhai Li

More information

The boa Package. May 3, 2005

The boa Package. May 3, 2005 The boa Package May 3, 2005 Version 1.1.5-2 Date 2005-05-02 Title Bayesian Output Analysis Program (BOA) for MCMC Author Maintainer Depends R (>= 1.7) A menu-driven program and

More information

Package jagsui. December 12, 2017

Package jagsui. December 12, 2017 Version 1.4.9 Date 2017-12-08 Package jagsui December 12, 2017 Title A Wrapper Around 'rjags' to Streamline 'JAGS' Analyses Author Ken Kellner Maintainer Ken Kellner

More information

Time Series Analysis by State Space Methods

Time Series Analysis by State Space Methods Time Series Analysis by State Space Methods Second Edition J. Durbin London School of Economics and Political Science and University College London S. J. Koopman Vrije Universiteit Amsterdam OXFORD UNIVERSITY

More information

Package BayesMetaSeq

Package BayesMetaSeq Type Package Package BayesMetaSeq March 19, 2016 Title Bayesian hierarchical model for RNA-seq differential meta-analysis Version 1.0 Date 2016-01-29 Author Tianzhou Ma, George Tseng Maintainer Tianzhou

More information

Random Number Generation and Monte Carlo Methods

Random Number Generation and Monte Carlo Methods James E. Gentle Random Number Generation and Monte Carlo Methods With 30 Illustrations Springer Contents Preface vii 1 Simulating Random Numbers from a Uniform Distribution 1 1.1 Linear Congruential Generators

More information

PIANOS user manual. Group Linja. Helsinki 7th September 2005 Software Engineering Project UNIVERSITY OF HELSINKI Department of Computer Science

PIANOS user manual. Group Linja. Helsinki 7th September 2005 Software Engineering Project UNIVERSITY OF HELSINKI Department of Computer Science PIANOS user manual Group Linja Helsinki 7th September 2005 Software Engineering Project UNIVERSITY OF HELSINKI Department of Computer Science Course 581260 Software Engineering Project (6 cr) Project Group

More information

Modeling Criminal Careers as Departures From a Unimodal Population Age-Crime Curve: The Case of Marijuana Use

Modeling Criminal Careers as Departures From a Unimodal Population Age-Crime Curve: The Case of Marijuana Use Modeling Criminal Careers as Departures From a Unimodal Population Curve: The Case of Marijuana Use Donatello Telesca, Elena A. Erosheva, Derek A. Kreader, & Ross Matsueda April 15, 2014 extends Telesca

More information

Package mederrrank. R topics documented: July 8, 2015

Package mederrrank. R topics documented: July 8, 2015 Package mederrrank July 8, 2015 Title Bayesian Methods for Identifying the Most Harmful Medication Errors Version 0.0.8 Date 2015-07-06 Two distinct but related statistical approaches to the problem of

More information

Fathom Dynamic Data TM Version 2 Specifications

Fathom Dynamic Data TM Version 2 Specifications Data Sources Fathom Dynamic Data TM Version 2 Specifications Use data from one of the many sample documents that come with Fathom. Enter your own data by typing into a case table. Paste data from other

More information

An Introduction to Model-Fitting with the R package glmm

An Introduction to Model-Fitting with the R package glmm An Introduction to Model-Fitting with the R package glmm Christina Knudson November 7, 2017 Contents 1 Introduction 2 2 Formatting the Data 2 3 Fitting the Model 4 4 Reading the Model Summary 6 5 Isolating

More information

Package bayesdp. July 10, 2018

Package bayesdp. July 10, 2018 Type Package Package bayesdp July 10, 2018 Title Tools for the Bayesian Discount Prior Function Version 1.3.2 Date 2018-07-10 Depends R (>= 3.2.3), ggplot2, survival, methods Functions for data augmentation

More information

Generalized Additive Models

Generalized Additive Models :p Texts in Statistical Science Generalized Additive Models An Introduction with R Simon N. Wood Contents Preface XV 1 Linear Models 1 1.1 A simple linear model 2 Simple least squares estimation 3 1.1.1

More information

Package rbugs. February 20, 2015

Package rbugs. February 20, 2015 Title Fusing R and OpenBugs and Beyond Date 2011-02-19 Version 0.5-9 Package rbugs February 20, 2015 Author Jun Yan and Marcos Prates Functions to prepare files

More information

Package SparseFactorAnalysis

Package SparseFactorAnalysis Type Package Package SparseFactorAnalysis July 23, 2015 Title Scaling Count and Binary Data with Sparse Factor Analysis Version 1.0 Date 2015-07-20 Author Marc Ratkovic, In Song Kim, John Londregan, and

More information

Missing Data and Imputation

Missing Data and Imputation Missing Data and Imputation NINA ORWITZ OCTOBER 30 TH, 2017 Outline Types of missing data Simple methods for dealing with missing data Single and multiple imputation R example Missing data is a complex

More information

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

Package hergm. R topics documented: January 10, Version Date Version 3.1-0 Date 2016-09-22 Package hergm January 10, 2017 Title Hierarchical Exponential-Family Random Graph Models Author Michael Schweinberger [aut, cre], Mark S.

More information

Package FWDselect. December 19, 2015

Package FWDselect. December 19, 2015 Title Selecting Variables in Regression Models Version 2.1.0 Date 2015-12-18 Author Marta Sestelo [aut, cre], Nora M. Villanueva [aut], Javier Roca-Pardinas [aut] Maintainer Marta Sestelo

More information

Package clusterpower

Package clusterpower Version 0.6.111 Date 2017-09-03 Package clusterpower September 5, 2017 Title Power Calculations for Cluster-Randomized and Cluster-Randomized Crossover Trials License GPL (>= 2) Imports lme4 (>= 1.0) Calculate

More information

Package bdpopt. March 30, 2016

Package bdpopt. March 30, 2016 Version 1.0-1 Date 2016-03-29 Title Optimisation of Bayesian Decision Problems Author Sebastian Jobjörnsson [aut, cre] Package bdpopt March 30, 2016 Maintainer Depends R (>= 3.0.2) Optimisation of the

More information

Stata goes BUGS (via R)

Stata goes BUGS (via R) (via R) Department of Political Science I University of Mannheim 31. March 2006 4th German Stata Users Group press ctrl + l to start presentation Problem 1 Problem You are a Stata user... and have a complicated

More information

Tutorial using BEAST v2.4.1 Troubleshooting David A. Rasmussen

Tutorial using BEAST v2.4.1 Troubleshooting David A. Rasmussen Tutorial using BEAST v2.4.1 Troubleshooting David A. Rasmussen 1 Background The primary goal of most phylogenetic analyses in BEAST is to infer the posterior distribution of trees and associated model

More information

The brlr Package. March 22, brlr... 1 lizards Index 5. Bias-reduced Logistic Regression

The brlr Package. March 22, brlr... 1 lizards Index 5. Bias-reduced Logistic Regression The brlr Package March 22, 2006 Version 0.8-8 Date 2006-03-22 Title Bias-reduced logistic regression Author David Firth URL http://www.warwick.ac.uk/go/dfirth Maintainer David Firth

More information

DATA ANALYSIS USING HIERARCHICAL GENERALIZED LINEAR MODELS WITH R

DATA ANALYSIS USING HIERARCHICAL GENERALIZED LINEAR MODELS WITH R DATA ANALYSIS USING HIERARCHICAL GENERALIZED LINEAR MODELS WITH R Lee, Rönnegård & Noh LRN@du.se Lee, Rönnegård & Noh HGLM book 1 / 24 Overview 1 Background to the book 2 Crack growth example 3 Contents

More information

Package simr. April 30, 2018

Package simr. April 30, 2018 Type Package Package simr April 30, 2018 Title Power Analysis for Generalised Linear Mixed Models by Simulation Calculate power for generalised linear mixed models, using simulation. Designed to work with

More information

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

Package glmmml. R topics documented: March 25, Encoding UTF-8 Version Date Title Generalized Linear Models with Clustering Encoding UTF-8 Version 1.0.3 Date 2018-03-25 Title Generalized Linear Models with Clustering Package glmmml March 25, 2018 Binomial and Poisson regression for clustered data, fixed and random effects with

More information

Lab 7: Bayesian analysis of a dice toss problem using C++ instead of python

Lab 7: Bayesian analysis of a dice toss problem using C++ instead of python Lab 7: Bayesian analysis of a dice toss problem using C++ instead of python Due date: Monday March 27, 11:59pm Short version of the assignment Take your python file from lab 6 and convert it into lab7

More information

Package mmeta. R topics documented: March 28, 2017

Package mmeta. R topics documented: March 28, 2017 Package mmeta March 28, 2017 Type Package Title Multivariate Meta-Analysis Version 2.3 Date 2017-3-26 Author Sheng Luo, Yong Chen, Xiao Su, Haitao Chu Maintainer Xiao Su Description

More information

ISyE8843A, Brani Vidakovic Handout 14

ISyE8843A, Brani Vidakovic Handout 14 ISyE8843A, Brani Vidakovic Handout 4 BUGS BUGS is freely available software for constructing Bayesian statistical models and evaluating them using MCMC methodology. BUGS and WINBUGS are distributed freely

More information

Bayesian Workflow. How to structure the process of your analysis to maximise [sic] the odds that you build useful models.

Bayesian Workflow. How to structure the process of your analysis to maximise [sic] the odds that you build useful models. Bayesian Workflow How to structure the process of your analysis to maximise [sic] the odds that you build useful models. -Jim Savage Sean Talts Core Stan Developer Bayesian Workflow Scope out your problem

More information

Package SSLASSO. August 28, 2018

Package SSLASSO. August 28, 2018 Package SSLASSO August 28, 2018 Version 1.2-1 Date 2018-08-28 Title The Spike-and-Slab LASSO Author Veronika Rockova [aut,cre], Gemma Moran [aut] Maintainer Gemma Moran Description

More information

mimr A package for graphical modelling in R

mimr A package for graphical modelling in R DSC 2003 Working Papers (Draft Versions) http://www.ci.tuwien.ac.at/conferences/dsc-2003/ mimr A package for graphical modelling in R Søren Højsgaard Abstract The mimr package for graphical modelling in

More information

Data Analysis and Solver Plugins for KSpread USER S MANUAL. Tomasz Maliszewski

Data Analysis and Solver Plugins for KSpread USER S MANUAL. Tomasz Maliszewski Data Analysis and Solver Plugins for KSpread USER S MANUAL Tomasz Maliszewski tmaliszewski@wp.pl Table of Content CHAPTER 1: INTRODUCTION... 3 1.1. ABOUT DATA ANALYSIS PLUGIN... 3 1.3. ABOUT SOLVER PLUGIN...

More information

Package beast. March 16, 2018

Package beast. March 16, 2018 Type Package Package beast March 16, 2018 Title Bayesian Estimation of Change-Points in the Slope of Multivariate Time-Series Version 1.1 Date 2018-03-16 Author Maintainer Assume that

More information

Package PTE. October 10, 2017

Package PTE. October 10, 2017 Type Package Title Personalized Treatment Evaluator Version 1.6 Date 2017-10-9 Package PTE October 10, 2017 Author Adam Kapelner, Alina Levine & Justin Bleich Maintainer Adam Kapelner

More information

Classifier Design for Population and Sensor Drift

Classifier Design for Population and Sensor Drift Classifier Design for Population and Sensor Drift Keith Copsey and Andrew Webb QinetiQ, St. Andrews Road, Malvern, WR14 3PS {k.copsey,a.webb}@signal.qinetiq.com Abstract. The basic assumption in classifier

More information

Package BPHO documentation

Package BPHO documentation Package BPHO documentation of February 22, 2008 Version 1.2-3 Title Bayesian Prediction with High-order Interactions Author Longhai Li Maintainer Longhai Li

More information

for Fast Clustering of Data on the Sphere

for Fast Clustering of Data on the Sphere Supplement to A k-mean-directions Algorithm for Fast Clustering of Data on the Sphere Ranjan Maitra and Ivan P. Ramler S-1. ADDITIONAL EXPERIMENTAL EVALUATIONS The k-mean-directions algorithm developed

More information

Reddit Recommendation System Daniel Poon, Yu Wu, David (Qifan) Zhang CS229, Stanford University December 11 th, 2011

Reddit Recommendation System Daniel Poon, Yu Wu, David (Qifan) Zhang CS229, Stanford University December 11 th, 2011 Reddit Recommendation System Daniel Poon, Yu Wu, David (Qifan) Zhang CS229, Stanford University December 11 th, 2011 1. Introduction Reddit is one of the most popular online social news websites with millions

More information

Ranjan Maitra and Ivan P. Ramler

Ranjan Maitra and Ivan P. Ramler Supplement to A k-mean-directions Algorithm for Fast Clustering of Data on the Sphere published in the Journal of Computational and Graphical Statistics Ranjan Maitra and Ivan P. Ramler S-1. ADDITIONAL

More information

Package gee. June 29, 2015

Package gee. June 29, 2015 Title Generalized Estimation Equation Solver Version 4.13-19 Depends stats Suggests MASS Date 2015-06-29 DateNote Gee version 1998-01-27 Package gee June 29, 2015 Author Vincent J Carey. Ported to R by

More information

Package eco. August 1, 2017

Package eco. August 1, 2017 Version 4.0-1 Date 2017-7-26 Title Ecological Inference in 2x2 Tables Maintainer Ying Lu Depends R (>= 2.0), MASS, utils Package eco August 1, 2017 Implements the Bayesian and likelihood

More information

Package BayesCR. September 11, 2017

Package BayesCR. September 11, 2017 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 ,

More information