N_V_Vm_vgc: Access Methods for Vocabulary Growth Curves (zipfR)

Description Usage Arguments Details Value See Also

Description

Return the vector of sample sizes (N.vgc), vocabulary sizes (V.vgc) or class sizes (Vm.vgc) from the vocabulary growth curve (VGC) represented by a vgc object. For an expected or interpolated VGC with variance information, VV.vgc returns the vector of variances of the vocabulary size and VVm.vgc the variance vectors for individual spectrum elements.

Note that these functions are not user-visible. They can be called implicitly through the generic methods N, V, Vm, VV and VVm, applied to an object of type vgc.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
  ## S3 method for class 'vgc'
N(obj, ...)

  ## S3 method for class 'vgc'
V(obj, ...)

  ## S3 method for class 'vgc'
Vm(obj, m, ...)

  ## S3 method for class 'vgc'
VV(obj, N=NA, ...)

  ## S3 method for class 'vgc'
VVm(obj, m, N=NA, ...)

Arguments

obj

an object of class vgc, representing an observed, interpolated or expected VGC

m

positive integer value determining the frequency class m for which the vector of class sizes is returned

N

not applicable (this argument of the generic method is not used by the implementation for vgc objects and must not be specified)

...

additional arguments passed on from generic method will be ignored

Details

VV.vgc a VVm.vgc will fail if the object obj does not include variance data. Vm.vgc and VVm.vgc will fail if the selected frequency class is not included in the VGC data.

Value

N.vgc returns the vector of sample sizes N, V.vgc returns the corresponding vocabulary sizes V(N) (or expected vocabulary sizes E[V(N)]), and Vm.vgc returns the vector of class sizes V_m(N) (or the expected spectrum elements E[V_m(N)]) for the selected frequency class m.

For an expected or interpolated VGC with variance information, VV.vgc returns the vector of variances Var[V(N)] of the expected vocabulary size, and VVm.vgc returns vector of variances Var[V_m(N)] for the selected frequency class m.

Except for N.vgc, the vector returned will be labelled with corresponding sample sizes.

See Also

N, V, Vm, VV, VVm for the generic methods and links to other implementations

vgc for details on vocabulary growth curve objects and links to other relevant functions


zipfR documentation built on Jan. 8, 2021, 2:37 a.m.