get_ntail: Values greater than or equal to xmin

Description Usage Arguments Examples

View source: R/get_ntail.R

Description

Returns the number of data points greater than or equal to current value of xmin. In the Clauset et al, paper this is called 'ntail'.

Usage

1
get_ntail(m, prop = FALSE, lower = FALSE)

Arguments

m

a distribution object.

prop

default FALSE. Return the value as a proportion of the total sample size

lower

default FALSE. If TRUE returns sample size - ntail

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
################################################
# Load data and create example object
################################################
data(moby_sample)
m = displ$new(moby_sample)
m$setXmin(7)
################################################
# Get ntail
################################################
get_ntail(m)
sum(moby_sample >= 7)

csgillespie/poweRlaw documentation built on May 23, 2020, 12:16 p.m.