simu_coefs: Simulate normally-distributed individual coefficients from...

View source: R/fcts RSF.R

simu_coefsR Documentation

Simulate normally-distributed individual coefficients from RSF/SSF based on their standard errors

Description

Simulate individual coefficients based on standard errors (to propagate uncertainty)

Usage

simu_coefs(coef, se, n = 1000)

Arguments

coef

A matrix of individual coefficients (output of ind_se)

n

Number of random coefficients to generate for each individual (default=1000)

Value

An array of individual coefficients

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)
se<-ind_se(m1, out)
simu<-simu_coefs(coef, se, n=100)

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