get_weighted_mnts: weighted moments generation

View source: R/tad.R

get_weighted_mntsR Documentation

weighted moments generation

Description

weighted moments generation

Usage

get_weighted_mnts(
  weights_factor,
  trait_data,
  weighted_moments_file,
  regenerate_weighted_moments_df,
  abundance_df,
  randomization_number,
  slope_distance,
  intercept_distance,
  factor_names = NULL
)

Arguments

weights_factor

the dataframe which contains the different factor linked to the weights

trait_data

a vector of the data linked to the different factor

weighted_moments_file

the path and name of the RDS file to load/save the dataframe which contains the calculated moments

regenerate_weighted_moments_df

boolean to specify if the weighted moments dataframe is computed again

randomization_number

the number of random abundance matrix to generate

slope_distance

slope of the theoretical distribution law (default: slope = 1 intercept = 1.86 skew-uniform distribution family)

intercept_distance

intercept of the theoretical distribution law (default: slope = 1 intercept = 1.86 skew-uniform distribution family)


TAD documentation built on April 4, 2025, 5:10 a.m.