ch.getPhitModel: a function to return a p(Hit) model that can be evaluated...

ch.getPhitModelR Documentation

a function to return a p(Hit) model that can be evaluated (i.e, an expression) from an nls object

Description

This function returns a p(Hit) model that can be evaluated (i.e, an expression) from an nls object

Usage

ch.getPhitModel(
  pHitFit,
  yLab = "p(Hit)",
  xLab = expression(paste("", Psi, "(value) Distributional overlap", sep = ""))
)

Arguments

pHitFit

an nls object - specifically from ch.pHVOfit().

Value

expression with of the best fitting model (with parameters and predictor variables)

Examples

ch.getPhitModel (nlsObject)
model <- ch.getPhitModel (nlsObject)
with(data, eval(model)

ccpluncw/ccpl_R_chutils documentation built on Feb. 28, 2024, 1:17 a.m.