Learn R Programming

MaskJointDensity (version 1.0)

findOrder_Rmask: order determination

Description

To determine the upper order of moment in the Legendre polynomial function

Usage

findOrder_Rmask(ystar, noise, a, b, maxorder = 100, EPS)

Arguments

ystar

masked data

noise

noise information

a

lower boundary

b

upper boundary

maxorder

the maximum order of moment used in the analysis

EPS

criterion for stopping

Value

integer

Details

no details needed

References

the idea is described in paper

Examples

Run this code
# NOT RUN {
##---- Should be DIRECTLY executable !! ----
##-- ==>  Define data, use random,
##--  or do  help(data=index)  for the standard data sets.
# }
# NOT RUN {
y<-rnorm(100,0,1)
noise<-abs(rnorm(100,2,4))
ystar<- noise*y
a<- -2
b<- 2
order<-findOrder_Rmask(ystar,noise,a,b,maxorder=100, EPS=1e-06)
print(order)
# }

Run the code above in your browser using DataLab