Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

compute.link

Compute estimates of link values


Description

Computes link values (design*beta) for real parameters, and var-cov from design matrix (design) and coefficients (beta)

Usage

compute.link(model, beta = NULL, design = NULL, data = NULL,
  parm.indices = NULL, vcv = TRUE)

Arguments

model

MARK model object

beta

Estimates of beta parameters

design

numeric design matrix for MARK model with any covariate values filled in

data

dataframe with covariate values that are averaged for estimates

parm.indices

index numbers from PIMS for rows in design matrix to use

vcv

logical; if TRUE, returns v-c matrix of link values

Details

This function is very similar to compute.real except that it provides estimates of link values before they are transformed to real estimates using the inverse-link. It is called by get.link to make calculations but can be called separately. The value is always a dataframe for the estimates and design data and optionally a variance-covariance matrix. See get.real for further details about the arguments.

Value

estimates: If vcv=TRUE, a list is returned with elements vcv.link and the dataframe estimates. If vcv=FALSE, only the estimates dataframe is returned which has the same structure as in get.real.

Author(s)

Jeff Laake

See Also


RMark

R Code for Mark Analysis

v2.2.7
GPL (>= 2)
Authors
Jeff Laake <jefflaake@gmail.com> with code contributions from Eldar Rakhimberdiev, Ben Augustine, Daniel Turek and Brett McClintock and example data and analysis from Bret Collier, Jay Rotella, David Pavlacky, Andrew Paul, Luke Eberhart- Phillips, Jake Ivan, and Connor Wood.
Initial release
2019-11-4

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.