fit: Fit Statistical Models

View source: R/fit.R

fitR Documentation

Fit Statistical Models

Description

Functions to fit statistical models to data.

Usage

fit(x, ...)

## S3 method for class 'variogram'
fit(x, model = "spherical", nugget = TRUE, distance.exponent = 0, inits, ...)

## S3 method for class 'morphometry.scsbio'
fit(x, y, z, n = 1, sex, theta, discrete = FALSE, print = FALSE, trace = 0)

Arguments

x

Data object or numeric vector representing a morphometric predictor variable..

model

Character string specifying the model type.

nugget

Logical value specifying whether a variogram model contains a nugget semi-variance parameter.

distance.exponent

Numeric value specifying the exponent to be applied in the distance metric.

export

y

Numeric vector representing a morphometric response variable.

z

Binary classification vector classifying morphometric data into discrete maturity groups.

n

Number of observations for each (x,y) pair (optional).

sex

Biological sex which specifies the type of analysis or initial values to be applied.

theta

Parameter vector.

discrete

Logical value specifying whether to treat observations as discrete rounded values.

print

Logical value specifying whether to print information about progress during model fitting.

trace

Optimization control output (see optim).

Methods (by class)

  • fit(variogram): Fit a model to empirical variogram data.

  • fit(morphometry.scsbio): Fit a morphometric model to snow crab morphometric data.


TobieSurette/gulf.stats documentation built on Jan. 4, 2023, 4:19 p.m.