estNBparamsNoLab: A function to estimate the NB-params ignoring the taxon...

Description Usage Arguments Value

View source: R/F_estNBparamsNoLab.R

Description

A function to estimate the NB-params ignoring the taxon labels

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
estNBparamsNoLab(
  design,
  thetasMat,
  muMarg,
  psi,
  X,
  nleqslv.control,
  initParam,
  n,
  v,
  dynamic,
  envRange,
  preFabMat,
  allowMissingness,
  naId
)

Arguments

design

an n-by-v design matrix

thetasMat

A matrix of dispersion parameters

muMarg

an offset matrix

psi

a scalar, the importance parameter

X

the data matrix

nleqslv.control

a list of control elements, passed on to nleqslv()

initParam

a vector of length v of initial parameter estimates

n

an integer, the number of samples

v

an integer, the number of parameters per taxon

dynamic

a boolean, should response function be determined dynamically? See details

envRange

a vector of length 2, giving the range of observed environmental scores

preFabMat

a pre-fabricated auxiliary matrix

allowMissingness

A boolean, are missing values present

naId

The numeric index of the missing values in X

If dynamic is TRUE, quadratic response functions are fitted for every taxon. If the optimum falls outside of the observed range of environmental scores, a linear response function is fitted instead

Value

a v-by-p matrix of parameters of the response function


RCM documentation built on Nov. 8, 2020, 5:22 p.m.

Related to estNBparamsNoLab in RCM...