From 5bd38e133c8c71c735898b1fbb4615b501fb895f Mon Sep 17 00:00:00 2001 From: Mitzi Morris Date: Fri, 20 Nov 2020 09:12:22 -0500 Subject: [PATCH 1/2] outline --- knitr/rosetta/rosetta-Xstan-cmdstanX.Rmd | 88 ++++++++++++++++++++++++ 1 file changed, 88 insertions(+) create mode 100644 knitr/rosetta/rosetta-Xstan-cmdstanX.Rmd diff --git a/knitr/rosetta/rosetta-Xstan-cmdstanX.Rmd b/knitr/rosetta/rosetta-Xstan-cmdstanX.Rmd new file mode 100644 index 000000000..27d7be32e --- /dev/null +++ b/knitr/rosetta/rosetta-Xstan-cmdstanX.Rmd @@ -0,0 +1,88 @@ +--- +title: "Stan Interfaces Rosetta (from XStan to CmdStanX) +author: "Mitzi Morris" +output: + html_document: + toc: yes + toc_depth: 2 + pdf_document: + toc: yes + toc_depth: '2' +--- + + + + +```{r setup, include=FALSE} +knitr::opts_chunk$set(cache=TRUE, message=FALSE, error=FALSE, warning=FALSE, comment=NA, out.width='90%', tidy.opts=list(width.cutoff=60), tidy=TRUE, fig.pos='H') +def.chunk.hook <- knitr::knit_hooks$get("chunk") +knitr::knit_hooks$set(chunk = function(x, options) { + x <- def.chunk.hook(x, options) + ifelse(options$size != "normalsize", paste0("\\", options$size,"\n\n", x, "\n\n \\normalsize"), x) +}) +``` + + +This note covers the differences between the RStan and PyStan interfaces +and the newer [CmdStanR](https://mc-stan.org/cmdstanr/) and +[CmdStanPy](https://mc-stan.org/cmdstanpy/) interfaces. + +All Stan interfaces provide the same essential functionality: +they compile and run Stan programs in a programming language environment. +CmdStan and RStan, the earliest Stan interfaces, differ slightly +in the names and conventions used for some methods and their arguments. +Because PyStan follows RStan while CmdStanR and CmdStanPy follow CmdStan, +these differences persist. +From here on out, we'll refer to RStan and PyStan as XStan +and CmdStanR and CmdStanPy as CmdStanX. + +Differences in names and conventions between XStan and CmdStanX +fall into the following categories: + +- Model compilation +- Method and argument names of Stan inference algorithms +- Accessing inference results + +## Model compilation + +## Inference Method Names and Arguments + +## Inference Result Objects + + + + + + + + +different defaults +Where PyStan follows RStan, + +Systematic + + + +the name + + + + + + From 121a94dc24c3ec247df0ee63279816f1f92b5588 Mon Sep 17 00:00:00 2001 From: Mitzi Morris Date: Fri, 20 Nov 2020 09:15:23 -0500 Subject: [PATCH 2/2] outline --- knitr/rosetta/rosetta-Xstan-cmdstanX.Rmd | 22 ---------------------- 1 file changed, 22 deletions(-) diff --git a/knitr/rosetta/rosetta-Xstan-cmdstanX.Rmd b/knitr/rosetta/rosetta-Xstan-cmdstanX.Rmd index 27d7be32e..11f7fcfa2 100644 --- a/knitr/rosetta/rosetta-Xstan-cmdstanX.Rmd +++ b/knitr/rosetta/rosetta-Xstan-cmdstanX.Rmd @@ -64,25 +64,3 @@ fall into the following categories: ## Inference Method Names and Arguments ## Inference Result Objects - - - - - - - - -different defaults -Where PyStan follows RStan, - -Systematic - - - -the name - - - - - -