rsf_ind: Apply a list of candidate models to multiple individuals

View source: R/fcts RSF.R

rsf_indR Documentation

Apply a list of candidate models to multiple individuals

Description

Apply rsf_mod to each individual of a dataset

Usage

rsf_ind(id, data, form_ls, cleanModel = F, method = "glm.fit")

Arguments

id

A vector indicating the individuals

data

The dataset containing all data

form_ls

A list of formulas for the different candidate models

method

Weither typical glm or bias-reduction glm should be fitted (default="glm.fit) (see package brglm)

cleamModel

Whether the model should be "cleaned" to save memory space (default = F)

Value

A list of list of glm objects

Examples

data(goats)
ls1<-list()
ls1[[1]]<-as.formula(STATUS~ELEVATION+SLOPE+ET+ASPECT+HLI+TASP)
ls1[[2]]<-as.formula(STATUS~ET+ASPECT+HLI+TASP)
out<-rsf_ind(goats$ID, data=goats, form_ls=ls1)

BastilleRousseau/IndRSA documentation built on Jan. 28, 2024, 2:14 a.m.