-
Notifications
You must be signed in to change notification settings - Fork 607
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- bugfix for map2stan imputation combined with certain kinds of varying effects. Added a test for this. - man pages for pairs.map2stan and plot.map2stan - plot.map2stan (trace plots) now recognize n_cols and max_rows arguments for arranging plot grid - WAIC method for map2stan defaults to use all non-warmup samples returned by Stan
- Loading branch information
Richard McElreath
committed
Apr 14, 2015
1 parent
9704c7d
commit ff3a7e8
Showing
11 changed files
with
153 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
Package: rethinking | ||
Type: Package | ||
Title: Statistical Rethinking book package | ||
Version: 1.53 | ||
Date: 2015-04-03 | ||
Version: 1.54 | ||
Date: 2015-04-13 | ||
Author: Richard McElreath | ||
Maintainer: Richard McElreath <[email protected]> | ||
Imports: coda, MASS, mvtnorm | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
\name{pairs.map2stan} | ||
\alias{pairs.map2stan} | ||
\alias{pairs.map} | ||
%- Also NEED an '\alias' for EACH other topic documented here. | ||
\title{Trace plot of map2stan chains} | ||
\description{ | ||
Shows \code{pairs} plots for Stan samples produced by a \code{map} or \code{map2stan} fit. | ||
} | ||
\usage{ | ||
pairs(x, n=500 , alpha=0.7 , cex=0.7 , pch=16 , adj=1 , pars , ...) | ||
} | ||
%- maybe also 'usage' for other objects documented here. | ||
\arguments{ | ||
\item{x}{map or map2stan model fit} | ||
\item{n}{Number of samples to show in scatter plots} | ||
\item{alpha}{alpha transparency of scatter plots} | ||
\item{cex}{Character expansion factor for scatter plots} | ||
\item{pch}{Point type for scatter plots} | ||
\item{adj}{\code{adj} argument for \code{\link{density}} estimate} | ||
\item{pars}{Character vector of parameters to display} | ||
\item{...}{Additional plot arguments} | ||
} | ||
\details{ | ||
This is the default pairs plot method for both \code{\link{map}} and \code{\link{map2stan}} model fits. | ||
} | ||
\value{ | ||
} | ||
\references{} | ||
\author{Richard McElreath} | ||
\seealso{} | ||
\examples{ | ||
} | ||
% Add one or more standard keywords, see file 'KEYWORDS' in the | ||
% R documentation directory. | ||
\keyword{ } | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
\name{plot.map2stan} | ||
\alias{plot.map2stan} | ||
%- Also NEED an '\alias' for EACH other topic documented here. | ||
\title{Trace plot of map2stan chains} | ||
\description{ | ||
Shows trace plots for Stan samples produced by a \code{map2stan} fit, annotated by number of effective samples. Automatic paging and adjustable number of columns and rows per page. | ||
} | ||
\usage{ | ||
plot( object , pars , col=rethink_palette , alpha=1 , bg=gray(0.7,0.5) , ask=TRUE , window , n_cols=2 , max_rows=5 , ... ) | ||
} | ||
%- maybe also 'usage' for other objects documented here. | ||
\arguments{ | ||
\item{object}{map2stan model fit} | ||
\item{pars}{Character vector of parameters to display} | ||
\item{col}{Vector of colors to use for chains. Recycled.} | ||
\item{alpha}{alpha transparency of chains} | ||
\item{bg}{Background fill for warmup samples} | ||
\item{ask}{Whether to pause for paging. Default is \code{TRUE}.} | ||
\item{window}{Range of samples to display. Default is all samples.} | ||
\item{n_cols}{Number of columns per page} | ||
\item{max_rows}{Maximum number of rows per page} | ||
\item{...}{Additional arguments to pass to plot commands} | ||
} | ||
\details{ | ||
This is the default trace plot method for \code{\link{map2stan}} model fits. | ||
} | ||
\value{ | ||
} | ||
\references{} | ||
\author{Richard McElreath} | ||
\seealso{} | ||
\examples{ | ||
} | ||
% Add one or more standard keywords, see file 'KEYWORDS' in the | ||
% R documentation directory. | ||
\keyword{ } | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters