Skip to content

Commit 9cedb95

Browse files
author
Bob Carpenter
committed
Merge branch 'feature/0133-ppcs' of https://github.com/stan-dev/docs into feature/0133-ppcs
2 parents 3a642df + 3629dd4 commit 9cedb95

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

src/stan-users-guide/decision-analysis.Rmd

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ another unit of money decreases the more money one has).
4141

4242
This section outlines a very simple decision analysis for a commuter
4343
deciding among modes of transportation to get to work: walk, bike
44-
share, public transportion, or cab. Suppose the commuter has been
44+
share, public transportation, or cab. Suppose the commuter has been
4545
taking various modes of transportation for the previous year and the
4646
transportation conditions and costs have not changed during that
4747
time. Over the year, such a commuter might accumulate two hundred
@@ -54,7 +54,7 @@ A decision consists of the choice of commute mode and the outcome is a
5454
time and cost. More formally,
5555

5656
* the set of decisions is $D = 1:4$, corresponding to the commute
57-
types walking, bicycling, public transportion, and cab,
57+
types walking, bicycling, public transportation, and cab,
5858
respectively, and
5959

6060
* the set of outcomes $X = \mathbb{R} \times \mathbb{R}_+$ contains
@@ -193,7 +193,7 @@ posterior predictive distribution of utility.
193193

194194
For simplicity in this initial formulation, all four commute options
195195
have their costs estimated, even though cost is fixed for three of the
196-
options. To deal with the fact that some costs ae fixed, the costs
196+
options. To deal with the fact that some costs are fixed, the costs
197197
would have to be hardcoded or read in as data, `nu` and
198198
`tau` would be declared as univariate, and the RNG for cost would only
199199
be employed when `k == 4`.

src/stan-users-guide/posterior-prediction.Rmd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -375,7 +375,7 @@ $\tilde{x}$ may be generated whenever needed. In Stan's interfaces,
375375
this is done by writing a second Stan program that inputs the original
376376
program's parameters and the new predictors. For example, for the
377377
linear regression case, the program to take posterior draws declares
378-
the data and parmeters, and defines the model.
378+
the data and parameters, and defines the model.
379379
```
380380
data {
381381
int<lower = 0> N;

src/stan-users-guide/poststratification.Rmd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ To poststratify the results, the population size for each combination of
208208
predictors must still be known. Then the population estimate is
209209
constructed as
210210
$$
211-
\sum_{i = 1}^5 \sum_{j = 1}^2 \sum{k = 1}^5 \sum{m = 1}^50
211+
\sum_{i = 1}^5 \sum_{j = 1}^2 \sum{k = 1}^5 \sum{m = 1}^{50}
212212
\textrm{logit}^{-1}(\alpha + \beta_i + \gamma_j + \delta_k + \eta_m)
213213
\cdot \textrm{pop}_{i, j, k, m},
214214
$$

0 commit comments

Comments
 (0)