coef.dCVnet: coef.dCVnet

View source: R/dCVnet_main.R

coef.dCVnetR Documentation

coef.dCVnet

Description

Coefficients from a dCVnet object. If type is "production" this gives the coefficients from the production model fit to all data. Other options for type return coefficients from the outerloop of the cross-validation which are summarised/presented in different ways.

Usage

## S3 method for class 'dCVnet'
coef(object, type = "all", ...)

Arguments

object

a dCVnet object

type

how to return coefficients.

  • "production" - the "production" model coefficients

  • "all" - return separate coefficients for each fold & rep of CV

  • "mean" - return mean over "all".

  • "median" - return median over "all".

  • "byrep" - return separate coefficients for each rep of CV (take mean average over folds).

  • byrep_mean - mean over "byrep"

  • byrep_mean - median over "byrep"

...

" "

Value

a data.frame of coefficient values (see type argument) containing columns: Predictor and Coef (as well as Rep and fold if applicable)

See Also

coefficients_summary


AndrewLawrence/dCVnet documentation built on Sept. 24, 2024, 5:24 a.m.