-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f0d5d00
commit b9e50b2
Showing
5 changed files
with
17 additions
and
17 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
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,19 +1,19 @@ | ||
## Only 1 mixture component, i.e., weights = 1 | ||
qbetaMix( | ||
qt = 0.60, | ||
p = 0.60, | ||
par = rbind(c(0.2, 0.4)), | ||
weights = 1 | ||
) | ||
|
||
## With 2 mixture components | ||
qbetaMix( | ||
qt = 0.6, par = rbind(c(0.2, 0.4), c(1, 1)), | ||
p = 0.6, par = rbind(c(0.2, 0.4), c(1, 1)), | ||
weights = c(0.6, 0.4) | ||
) | ||
|
||
## Can also specify q as a vector | ||
qbetaMix( | ||
qt = seq(0, 1, .01), | ||
p = seq(0, 1, .01), | ||
par = rbind(c(0.2, 0.4), c(1, 1)), | ||
weights = c(0.6, 0.4) | ||
) |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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