linearComb-methods: Methods for Function linearComb in Package 'unmarked'

Description Methods Examples

Description

Methods for function linearComb in Package ‘unmarked’

Methods

obj = "unmarkedEstimate", coefficients = "matrixOrVector"

Typically called internally

obj = "unmarkedFit", coefficients = "matrixOrVector"

Returns linear combinations of parameters from a fitted model. Coefficients are supplied through coefficients. The required argument type specifies which model estimate to use. You can use names(fittedmodel) to view possible values for the type argument.

Examples

1
2
3
4
5
6
7
data(ovendata)
ovenFrame <- unmarkedFrameMPois(ovendata.list$data,
siteCovs=as.data.frame(scale(ovendata.list$covariates[,-1])), type = "removal")
fm <- multinomPois(~ 1 ~ ufc + trba, ovenFrame)
linearComb(fm, c(1, 0.5, 0.5), type = "state")
linearComb(fm, matrix(c(1, 0.5, 0.5, 1, 0, 0, 1, 0, 0.5), 3, 3,
  byrow=TRUE), type="state")

Example output

Loading required package: reshape
Loading required package: lattice
Loading required package: parallel
Loading required package: Rcpp
Linear combination(s) of Abundance estimate(s)

 Estimate    SE (Intercept) ufc trba
   0.0671 0.167           1 0.5  0.5

Linear combination(s) of Abundance estimate(s)

  Estimate    SE (Intercept) ufc trba
1   0.0671 0.167           1 0.5  0.5
2   0.1024 0.119           1 0.0  0.0
3   0.0169 0.145           1 0.0  0.5

unmarked documentation built on May 27, 2021, 5:07 p.m.