R/csu_eapc.R

Defines functions csu_eapc

Documented in csu_eapc

csu_eapc <-
  function(df_data,
  var_rate="asr",
  var_year="year",
  group_by= NULL,
  var_eapc="eapc",
	CI_level = 0.95) {
  
  
  core.error_variable(df_data, var_rate, csu_eapc)
	core.error_variable(df_data, var_year, csu_eapc)
	core.error_time_variable(df_data, var_year, group_by, csu_eapc)
  
    #call core function 
	df_data <- core.csu_eapc(df_data, var_rate, var_year, group_by, var_eapc, CI_level)
    
	cat(paste0("EAPC with "),CI_level*100,("% CI level have been computed\n"))
    
    return(df_data)
    
  }

Try the Rcan package in your browser

Any scripts or data that you put into this service are public.

Rcan documentation built on Oct. 7, 2024, 1:18 a.m.