Releases: benjaminhlina/ecotox
v1.4.4
New information as of 23-Oct-2021
LC_andLT_functions now determine both the standard error similar to howpredict()works
as well as the covariance of the model to be used byratio_test()ratio_test()was discovered to be inaccurately calculating test statistic and p value
whenlog_x = FALSE. This has been corrected when determining t by taking the log of each doses- citation for the package has been updated as the paper the package was writing for has now been published
- v1.4.4 will be pushed to CRAN within a few days
v1.4.2
Changes in function features
-
LC_andLT_functions now have warnings messages for not supplying a variable for theweightsargument. This is due to only needing to supply if you are taking the response / total for your response variable within the formula call ofLC_probit. Otherwise if you usecbind(response, non-response)method you do not need to supply weights. If you do the model will be incorrect. If you don't supplyweightsthere is a warning that will help you to make sure you are using one method or the other. -
This stackExchange question explains the differences to using
cbind()vs.respone / totalmethod. cbind() function in R for a logistic regression
Minor update to functionality
- Test coverage is now 100% for all functions including
ratio_test() LC_andLT_functions now have warnings for not supplying a value for pLC_andLT_functions now have error messages for not supplying a variable for theweightsargument.ecotoxno longer relys onggplot2asggplot2was a dependency as the examples forLC_andLT_functions useggplot2to plot the results. Instead these examples have now been commented. To run this part of the example just uncomment the lines. This was done asggplot2does not need to be a dependency forecotox.tibbleandstatsare now the only dependency withstatsbeing the only truely necessary dependency forecotox.tibbleis being used instead of R's default dataframe as tibbles are more useful but not necssary for the anlysis
New function ratio_test
- New function, ratio_test. This function allows the user to caculate differences between two seperate LC or LT values using a ratio test derived from Wheeler et al. 2006. To use the function, the user needs to create two
glm()objects with either a probit or logit link. Model objects then can be passed toratio_test()along with apercentargument which is the same argument as thepargument inLC_andLT_functions. Atypeargument is also needed to specify the link function used in theglm(). This can be either"probit"or"logit". - All functions now output a
tibbleinstead of dataframe - New argument
log_basefor all LC, LT, and ratio_test functions. It
allows the user to specifcy the base used when log transfoming the dose/x variable. - All functions now allow for an LC or LT value to be calculated down to the
1.0e-16 of a percent however four decmial places is typically appropriate (e.g. LC75.5). Tibble output will usually round the p value to the nearest whole number but if you insepect the p column or export to excel usingopenxlsxpackage you'll see p in the output is the same value supplied in the function call.
v1.3.3 - New Feature long_output
New Feature as of 20-Sep-2018
- All functions now have
long_outputargument which allows the user to
decide whether or not a short or long output is displayed. Default isTRUEwhich will display long output of all 19 variables. IfFALSEis used only 7 variables will be displayed.
v1.3.2 - New Feature log_x
New Feature as of 28-June-18
- All functions now have
log_xargument which allows the user to specify if
the x variable waslog10transformed or not. Default isTRUEwhich will
output back transformed results. IfFALSEresults will not be back
transformed.
v1.3.1.9000 - Developer Version of ecotox
New Feature as of 19-Mar-2018
- v1.3.1 is now available on CRAN.
- development of
ratio_testis underway and will be implemented soon - development of
spearman_karberis still occurring - shiny app is being development
v1.3.0.9000 : New Argument Supported - Subset
New Feature as of 9-Feb-2018
- All functions now have
subsetargument Dataargument can now be just the dataframe of interest
no need to use brackets to subsetWeightsis no longer an optional argument and can be specified
just by object name. Again no need to add name of dataframe,
bracket to subset[]and$to select object used forweights.LC_probitandLC_logitandLT_probitandLT_logitmight be
depreciated aslc_probitandlc_logitandlt_probitandlt_logit
are simpler function calls for users and are consistent with
naming conventions. Thoughts??
v1.3.1
Updated NEWS
v1.2.0.9000: New functions - Logit analysis
New functions which allow the user to run a logit analysis. LC and LT have been depreciated and will be removed in future versions.