rf: Extraction of proximity from random forest classification

View source: R/fcts RSF.R

rfR Documentation

Extraction of proximity from random forest classification

Description

Apply random forest classification

Usage

rf(coef, ntree = 10000, ...)

Arguments

coef

A matrix of model coefficient (from function ind_coef)

Value

A proximity matrix

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)
coef<-ind_coef(m=1, out)
prox<-rf(coef)

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