# NOT RUN {
# if q < 0, pgood returns NaN with a warning
pgood ( q = -3 , z = 0.6 , s = -3 )
# if q is non-integer, pgood returns the cdf of floor(q) with a warning
pgood ( q = 3.4 , z = 0.6 , s = -3 )
# if z is not within 0 and 1, pgood returns returns NaN with a warning
pgood ( q = 3.4 , z = c( -0.6 , 0.6) , s = -3 )
pgood ( q = 0 : 2 , z = 0.6 , s = -3 )
pgood ( q = 0 : 1 , z = c ( 0.6 , 0.9 ) , s = -3 )
pgood ( q = 0 : 1 , z = c ( 0.6 , 0.9 ) , s = -3 , lower.tail = FALSE )
pgood ( q = 0 : 2 , z = c ( 0.6 , 0.9 ) , s = c ( -3 , -4 , -5 ) )
# }
Run the code above in your browser using DataLab