trenda_obs: Function to calculate trend analyses for Bosch & Partner...

View source: R/trendanalyse_ohne_einfl_beob_function_2018.R

trenda_obsR Documentation

Function to calculate trend analyses for Bosch & Partner (without influential observations)

Description

Function to calculate trend analyses for Bosch & Partner (without influential observations)

Usage

trenda_obs(
  data_dir,
  plot_dir,
  result_name,
  log_trans = FALSE,
  res_tab_file,
  calc_einfl_beob = TRUE
)

Arguments

data_dir

directory where the data is stored

plot_dir

directory where the generated plots are saved

result_name

directory and name (without ending) where the result table is stored

log_trans

logical if log-transformed values are used (TRUE leads to the adjustments for plot function)

res_tab_file

result table of the same data of perform_trendanalyse; needed for information about the influential observations which should be left out in the analysis

calc_einfl_beob

logical; the influential observations should be calculated again. Can be useful to turn off as this information is not needed and sometimes the calculation of the influential observations for GLS models does not work

Details

Since this function needs the information which are influential obser- vations, the function perform_trendanalyse has to be run first on the same data. this function needs the information generated by

Value

the function does not return a value but stores the plot and table in the assigned directories


Banui/trenda documentation built on March 19, 2022, 2:22 a.m.