Pbeta: A function to compute a Monte Carlo estimate of the Beta cdf...

Description Usage Arguments Value Examples

View source: R/Pbeta.R

Description

A function to compute a Monte Carlo estimate of the Beta cdf with integer parameters

Usage

1
Pbeta(y, alpha, beta, m)

Arguments

y

the parameter of cdf

alpha

the shape paramaters of beta distribution

beta

the shape paramaters of beta distribution

m

the number of Monte Carlo experiment times

Value

a Monte Carlo estimate of the beta cdf

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
## Not run: 
alpha<-3;beta<-3;m<-1e4
Pbeta1<-function(x){
 Pbeta(x,alpha,beta,m)
}
sapply((1:9)/10,Pbeta1)
pbeta1<-function(x){
 pbeta(x,alpha,beta)
}
sapply((1:9)/10,pbeta1)

## End(Not run)

nhhyqmsir/SC19040 documentation built on Jan. 3, 2020, 12:15 a.m.