Skip to content

Commit

Permalink
Update Wickham1.Rmd
Browse files Browse the repository at this point in the history
  • Loading branch information
IliaNadp2024 authored Jul 21, 2024
1 parent d97a74b commit cd69f9c
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions Wickham1.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -266,13 +266,21 @@ flights %>%
not_cancelled %>%
count(dest)
```
betaHPD <- function(alpha,beta,p=.95,plot=FALSE,xlim=NULL,debug=FALSE){
if(is.na(p) | is.nan(p) | p > 1 | p < 0)
stop("p not between 0 and 1\n")
if(alpha<=1 | beta <=1)
stop("betaHPD only implemented for alpha and beta both > 1\n")
## initialize internal logical flags
compute <- TRUE
swap <- FALSE
```{r}
```
Expand Down

0 comments on commit cd69f9c

Please sign in to comment.