File: plot_beta_distribution.rkcommands.R

package info (click to toggle)
rkward 0.8.2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 45,628 kB
  • sloc: cpp: 50,489; xml: 9,596; javascript: 6,401; python: 21; makefile: 13
file content (18 lines) | stat: -rw-r--r-- 486 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
local({
## Print result
rk.header ("Beta distribution function", parameters=list("Number of Observations"="100",
	"Lower quantile"="0.00",
	"Upper quantile"="1.00",
	"Shape1 (a)"="2.00",
	"Shape2 (b)"="2.00",
	"Non-centrality parameter (ncp)"="0.00",
	"Tail"="Lower tail: P[X ≤ x]",
	"Logarithmic"="yes",
	"Function"="pbeta"))

rk.graph.on ()
try ({
	curve (pbeta(x, shape1=2.00, shape2=2.00, ncp=0.00, lower.tail = TRUE, log.p=TRUE), from=0.00, to=1.00, n=100)
})
rk.graph.off ()
})