make_occ_model: Make, and save to disk, an occupancy model.

View source: R/make_occ_model.R

make_occ_modelR Documentation

Make, and save to disk, an occupancy model.

Description

Make, and save to disk, an occupancy model.

Usage

make_occ_model(taxa, df, out_file, geo_cols, random_col = "grid_l", ...)

Arguments

taxa

Character name of taxa for which model is being run. Used to name output file.

df

Cleaned, filtered data frame.

out_file

Path to file where model results are/will be saved.

geo_cols

Character name of columns in df containing geographic context. Last index in geo_cols is used as primary analysis level.

random_col

Character name of column in df containing random factor for model. This is usually the larger of two (probably raster) grid cell sizes.

...

Passed to rstanarm::stan_gamm4 (e.g. chains, iter)

Value

out_file


Acanthiza/envTrend documentation built on Nov. 16, 2023, 4:24 p.m.