NEWS
FunChisq 2.5.4 (2024-05-10)
2024-05-10
- Created version 2.5.4 from 2.5.3.2.
FunChisq 2.5.3.2
2024-05-10
- Add dqRNGkind("xoroshiro128+") to test code for incoming 'dqrng' package's change of default random number generator.
- Update the test cases to be consistent with testthat (>= 3.0.0).
2023-09-09
Major changes were made for the exact function test (EFT). The EFT DQP code has been rewritten to fix bugs that might cause crash for certain inputs:
- Implemented the DQP algorithm using hash table instead of vector.
- Used row sums as the key to build the search tree. It fixed one bug in DQP.
- Renamed the variables to avoid reversing rows and columns in the input table.
- Renamed the header and cpp files of the DQP algorithm to fastEnu.h and fastEnu.cpp.
- Edited the main.cpp file to implement the EFT using revised code.
2023-09-09
- Created version 2.5.3.2 from 2.5.3.1.
FunChisq 2.5.3.1
2023-06-21
- Created version 2.5.3.1 from 2.5.3.
- Added seed functions to reproduce simulated tables in the test_simulate.R
FunChisq 2.5.3 (2023-05-25)
2023-05-25
- Created version 2.5.3 from 2.5.2.3.
- Modified README.md and FunChisq-package.Rd.
FunChisq 2.5.2.3
2023-05-25
- Renamed sort.index() to sort_index() in simulate_tables.R to avoid conflict with S3 methods of sort().
2023-05-22
- Changed NEWS from plain text file to markdown file.
- Edited NEWS.
2023-05-20
- Created 2.5.2.3 from 2.5.2.2
- Fixed a bug in the adapted Funchisq test. The R code cannot get column number from an integer. Fixed by changing the integer to matrix data type.
FunChisq 2.5.2.2
2023-05-19
- Created 2.5.2.2 from 2.5.2.1
- Modified test_simulate.R to examine the pattern tables for the maintenance of table type property.
- Modified the simulate_table.R, not_constant() function by commenting out random table generation part (it was eliminating the table type property).
FunChisq 2.5.2.1
2023-05-19
- Dropped the C++11 specification.
- Added adapted the functional chi-squared test reference (Kumar and Song, 2022) in DESCRIPTION and fun.chisq.test() manual.
2022-01-18
- Updated the README.md file.
2021-07-18
- Created 2.5.2.1 from 2.5.2.
- Modified simulate_tables() function for usage of seq(n) to seq(length=n), which gives different results when n is 0.
- Revised the manual for simulate_tables() function regarding marginal distributions.
FunChisq 2.5.2 (2021-05-19)
2021-05-19
- Created 2.5.2 from 2.5.1.2
FunChisq 2.5.1.2
2021-05-17
- Updated the is_many.to.one() function in simulate_tables()
to satisfy the non-monotonic property of functional patterns within the rows and columns having non-zero marginals.
- Added a new method option "adapted" to fun.chisq.test.
- Added a vignette 'adapted.fun.chisq.test.Rmd' for adapted functional chi-squared test.
- Mentioned "adapted functional chi-squared test" in DESCRIPTION.
- Imported R packages 'dqrng', 'DescTools' and 'infotheo' in DESCRIPTION.
- Added three testthat test cases for adapted functional chi-squared test in test_AdpFunChisq.R.
- Updated fun.chisq.test.Rd with details about the method option "adapted".
- Added imports from 'dqrng', 'infotheo' and 'DescTools' in NAMESPACE.
2021-05-11
- Created 2.5.1.2 from 2.5.1.1
- Updated the not_constant() function in simulate_tables() to satisfy the non-constant property of functional patterns within the rows and columns having non-zero marginals.
FunChisq 2.5.1.1
2021-04-18
- Removed the 'LazyData: TRUE' option in the package DESCRIPTION as the package does not have a 'data' directory.
2021-03-26
- Further improved numerical stability for calculating FunChisq statistic and function index (estimate) when alternative = "non-constant" (default) for fun.chisq.test().
- Added two more testthat cases for in test_FunChisq.R
2021-03-24
- Fixed a bug that if the input has all zeros, the
fun.chisq.test() function would stop with an error. A test case is added to the testthat examples.
- Fixed a bug that if an input table has small non-integer values, round-off errors can result in calculating function index (estimate), now the issue has been fixed. A test case is added to the testthat examples.
2020-11-27
- Fixed the p.value entry to be unamed in the return object of fun.chisq.test(). It was incorrectly named "statistic" in some test options. The change was made inside file "R/FunChisq.R".
2020-07-18
- Updated REFERENCES.bib and CITATION
- Updated README.md
2020-06-14
- Created 2.5.1.1 from 2.5.1
FunChisq 2.5.1 (2020-06-14)
2020-06-13
- Created 2.5.1 from 2.5.0.1
FunChisq 2.5.0.1
2020-06-13
- Updated the README file to include badges about the package.
- Replaced \dontrun by \donttest for examples in manuals.
2020-05-31
- API change to simulate_tables(). For functional patterns, if both row and column marginal distributions are specified, each marginal is observed half of the time with the other marginal not strictly observed. In the past, only the row marginal distribution was observed.
- The simulate_tables() function now can generate functional patterns for a given column marginal distribution.
- simulate_tables(): Default row and column marginals are changed to NULL at the parameter.
Any NULL is replaced by uniform distribution if not specified by user.
- simulate_tables(): Introduced decide.marginal() to select the
marginal type if both are provided or none of them are provided.
- simulate_tables(): Changed the name of functional.table() function to disc.functional.pattern().
- simulate_tables(): Functional 0/1 pattern table is no longer dependent on either row and column marginal.
- Added new testthat tests for simulate_tables() to check for marginal distribution of simulated tables.
- Added three more examples of functional tables in the simulate_tables() manual with user specified column marginals.
- Updated simulate_tables() manual.
2020-04-24
- Created Version 2.5.0.1 from 2.5.0.
- Updated manuals of most functions in the package.
FunChisq 2.5.0 (2020-04-24)
2020-04-23
- API change: simulate_tables() now includes a margin parameter to specify how noise model will be applied. The default noise for functional patterns has now been changed to apply along both row and column. In previous versions, the noise was only applied along columns within each row such that row sums do not change.
- Test_Functional_table() has been modified to not check for equal row sums before and after adding noise, which is true only if the noise is applied along the column.
- Updated references, CITATION, and manuals to reflect a newly accepted manuscript (Nguyen et al. 2020).
2020-03-15
- Fixed a NOTE in 2.4.9.2 Rdpack was not imported in NAMESPACE.
- Updated references in FunChisq-package.Rd and REFERENCES.bib.
2020-03-14
- Created version 2.5.0 from 2.4.9.2.
FunChisq 2.4.9.2 (2020-03-14)
2020-03-13
- Updated CITATION, DESCRIPTION, README.md
- Introduced the Rdpack to manage references
2020-02-13
- Added ORCID for author Sajal Kumar.
2019-11-10
- Updated the REAMDE.md file of the package.
2019-11-04
- Fixed "page" entry to "pages" entry in the CITATION file.
- Deprecated 'cp.chisq.test'. The function has been moved to R package 'DiffXTables'.
2019-09-28
- Created version 2.4.9.2.
- Fixed signed / unsigned mismatch in trimTable.cpp.
FunChisq 2.4.9.1 (2019-09-24)
2019-09-20
- Created version 2.4.9.1.
- Fixed a bug in trimming all-zero rows or columns from the input table in EFT DQP and DP. Added a new test case x16 for this bug.
- Eliminated the use of static array in the EFT DP and DQP code.
FunChisq 2.4.9
2019-09-08
- Created version 2.4.9.
- Revised README.md.
- Fixed a bug for EFT DQP. Included the table that caused the bug as test case table x15.
FunChisq 2.4.8-1 (2019-09-08)
2019-09-08
- Revised 'DESCRITION'.
- Revised 'README.md'.
2019-09-07
- Fixed a bug in the exact.dqp option of the exact functional test. Added a new test case that had given this bug in the test functions.
- Re-organized the test cases into more R files based on 'testthat'.
- Added 'README.md'.
- Included references into DESCRIPTION.
2019-09-06
- Default index.kind is changed from uncoditional to function index in function test.interactions(). (API change)
- Edited documentation.
- Changed the package title to "Model-Free Functional Chi-Squared and Exact Tests"
2019-09-05
- Created version 2.4.8-1.
- Updated package documentation (DESCRIPTION, CITATION). Now included a reference to Hien Nguyen's unpublished dissertation.
- Updated manuals for the package.
- Updated vignette for fun.chisq.test.Rmd.
- Commented out std::cout usage in Node::show() function defined in Node.cpp.
- Changed to use chi-squared test instead of chi-square test.
- Created a new manual (EFT.Rd) for exact functional test functions EFTDP() and EFTDQP().
- Updated the table and sample size restrictions to the exact test options in function fun.chisq.test().
FunChisq 2.4.8
2018-12-25
- Provide new method options "exact.qp", "exact.dp", and "exact.dqp" for fun.chisq.test().
2018-12-06
- Created version 2.4.8 to merge the exact tests in 2.4.6 and 2.4.7.
FunChisq 2.4.7
2018-07-24
- Improved the runtime of the exact functional test by applying the quadratic lower bound and upper bounds for each node at the step of network construction during branch-and-bound. This sped up the test thousands of times from the quadratic-programming-only or dynamic-programming-only option on all contingency tables.
FunChisq 2.4.6
2018-06-17
- Added an alternative implementation of the exact functional test using branch-and-bound with dynamic programming. This reduced runtime on some contigency tables with large table size or sample size by thousands of times.
- Added a new method option (method = "exact.dp") to function fun.chisq.test() in "R/FunChisq.R" for the above new exact functional test implementation.
FunChisq 2.4.5-3 (2018-12-06)
2018-12-04
- Updated simulate_tables() function to be more accurate when generating small tables where row and column variables are independent. Specifically, zero counts are now allowed.
- Tests for simulate_tables() in test_simulate.R is also updated.
- Introduced simulate_independent_tables() from the preivous code, where noise is applied along both rows and columns (previously only along the rows). The funciton is in simulate_tables.R.
- Modified prelim.check() in simulate_tables.R.
- The manual page for simulate_tables() is updated
accordingly.
- Updated the examples in the manual of plot_tables().
2018-11-01
- Added an argument in plot_table() to highlight row maxima with a box.
2018-10-24
- Created version 2.4.5-3.
- Make "conditional function index" to be the default, previously "unconditional".
- Added a new vignette "Examples of discrete patterns".
- Set the default function index.kind to "conditional". The "unconditional" option for function index will phase out.
- Updated vignettes.
FunChisq 2.4.5-2 (2018-10-23)
2018-10-22
- Reintroduced a test source code file test_FunChisq.R back, which was accidentally deleted from the previous version.
2018-10-17
- Added a plot_table() function to visualize a contingency table.
2018-10-16
- Created version 2.4.5-2.
- Included conditional FunChisq R code.
FunChisq 2.4.5-1 (2018-06-16)
2018-06-16
- In the exact functional test C++ code, improved the numerical precision of the FunChisq statistic using an equivalent mathematical form already used in the R version. This fixed bugs in the exact functional test when the table is of certain dimension and sample size.
- Added a few more test cases for the exact functional test.
- Increased the maximum table size from 5x5 to 10x10 for the exact functional test.
- Added a warning message when asymptotic test is used in place of the exact test to avoid long computational time.
- Updated the DOI of the reference to exact functional test.
FunChisq 2.4.5 (2018-02-20)
2018-02-08
- Added a parameter "exact.mode.bound" in the fun.chisq.test() function to switch ON/OFF the fast branch-and-bound algorithm in the exact functional test.
- Updated testthat cases for exact functional test.
FunChisq 2.4.4 (2018-02-06)
2018-02-05
- Added a new reference (Zhong and Song, 2018) for exact functional test.
- Changed the package title to "Chi-Square and Exact Tests for Model-Free Functional Dependency"
2017-10-26
- Included a reference for the simulate_tables() function that describes the strategies used by the function.
2017-06-11
- Updated the functional indices to be more accurate when the number of row is less than the number of columns and also when conditioned on the column sum.
2017-05-29
- Added "simulate.p.value" method option in fun.chisq.test() to calculate p-value with Monte carlo simulated distribution.
2017-05-16
- Updated the vignette for choosing quantities for
functional dependencies.
2017-05-05
- Fixed a bug in simulating 'discontinuous' contingency tables when the number of column is two.
- Updated manuals.
FunChisq 2.4.3 (2017-05-02)
2017-04-27
- Fixed a bug in specifying the margin to apply noise in simulate_tables().
- Added a noise.model parameter in simulate_tables() to specify either the "house" or "candle" noise model for applying noise to contingency tables representing ordinal or categorical data.
2017-04-25
- Revised package description and manuals.
FunChisq 2.4.2 (2017-04-24)
2017-04-20
- Renamed pattern type "nonmonotonic" to "many.to.one" in simulate_tables(). The latter is mathematically correct.
- Added a "discontinuous" pattern type in simulate_tables().
- Added a new candle noise model for categorical variables.
- Sped up add.noise function code by taking advantage of vectorized multinomial distribution R function.
FunChisq 2.4.1
2017-04-02
- Revised the manual for function simulate_tables()
2017-02-28
- Suppressed warning messages when calling chisq.test() to compute chi-squares in function simulate_tables().
- Edited the manual for simulate_tables().
- Edited other manuals for improved consistency with R package reference format.
FunChisq 2.4.0 (2017-02-28)
2017-02-26
- Added a new R function simulate_tables() with supporting test functions.
- Added a new R function add.house.noise() with supporting test functions.
- Introduced the use of 'R_registerRoutines' and 'R_useDynamicSymbols'.
FunChisq 2.3.4
2016-10-01
- Added keywords to the package manual.
FunChisq 2.3.3 (2016-09-02)
2016-09-02
- Updated the vignettes.
FunChisq 2.3.2 (2016-09-02)
2016-08-29
- Updated the reference section to fix the year of Pearson's chi-square test paper which was published in 1900 not 1990.
2016-05-03
- Now check all options for the method argument so that only valid methods are allowed.
FunChisq 2.3.1 (2016-05-02)
2016-05-01
- Expanded test.interactions() to test many-to-one combinatorial interactions in C++ via Rcpp.
FunChisq 2.3.0
2016-04-30
- Data frame input is now converted to numeric matrix before exact functional test.
- Added function test.interactions() to test pairwise (one-to-one) interactions, implemented in C++ via Rcpp for computational efficiency.
FunChisq 2.2.4 (2016-04-22)
2016-04-21
- Added vignette "Which statistic to use for functional dependency from fun.chisq.test()?"
- Updated references and description.
FunChisq 2.2.3 (2016-04-01)
2016-03-31
- Use [[Rcpp::export]] to automatically generate R interface.
2016-03-15
- Revised the code to remove dependency on RcppClassic.
2016-03-12
- Revised help documentation and included new references.
FunChisq 2.2.2 (2016-02-14)
2016-02-07
- Handled a special case for the normalized FunChisq when the degrees of freedom are zero.
2016-02-05
- Renamed the "type" argument to "alternative" in
fun.chisq.test().
- Revised values of the "method" argument in fun.chisq.test(). Previous values ("default" and "normalized") are still supported but obsolete.
- Added the "log.p" argument in both cp.fun.chisq.test() and cp.chisq.test().
- Updated the documentation.
2016-01-30
- Added a new argument "index.kind" to fun.chisq.test() to specify the function index kind: "unconditional" or "conditional" on a given marginal of Y.
2016-01-26
- Fixed a bug in cp.chisq.test().
FunChisq 2.2.1 (2016-01-26)
2016-01-25
- Fixed a bug introduced in the previous version.
- Updated package description to be more reflective of recent additions.
- Included missing references.
FunChisq 2.2.0 (2016-01-24)
2016-01-23
- Improved code efficiency for fun.chisq.test().
- Now fun.chisq.test() returns an estimate of function index between 0 and 1, in analogy to Cramer's V, but asymmetrical.
- Added additional test examples for fun.chisq.test().
2016-01-22
- Added type argument to fun.chisq.test() to specify functional or non-constant functional chi-squares.
- Added log.p argument to fun.chisq.test() to obtain log of p-value to improve accuracy when sample size is large and p-value is close to zero.
2015-07-03 (Unpublished version 2.1.1 )
- Added cp.chisq.test() for comparative chi-square test, not considering functional dependencies.
- Added test examples for cp.chisq.test().
FunChisq 2.1.0 (2015-06-29)
2015-06-29
- Substantially reduced the run time of exact functional test by designing a better branch and bound strategy.
- Enabled C++11 compling by adding two files (Makevars and Makevars.win).
- Fixed a bug occured under WIN32 using long double by adding define.h to specify double precision for WIN32 and long double precision for WIN64.
- Increased float comparison precision by considering a tolerance.
- Imported pnorm() and pchisq() from the "stats" package.
FunChisq 2.0.2 (2015-03-04)
2015-03-03
- Updated documentation for the package and its functions.
- Fixed a testing issue under r-release-linux-ix86 flavor.
FunChisq 2.0.1 (2015-02-24)
2015-02-23
- Removed assert() function from StatDistribution.cpp.
- Removed Makevar and Makevar.win files.
- Removed all iostream and sstream and cassert.
- Removed TransitionTableIO.cpp.
- In the testthat examples, signif(x,8) is used to compare 8 significant digits of the results.
- Added a normalized functional chi-square test example.
FunChisq 2.0.0 (2015-02-16)
2015-02-12
- Added a new exact functional test as a method option to fun.chisq.test(). The exact functional test is an exact version of FunChisq test, it is more precise to detect functional dependencies in small sample-sized contingency tables.
- Added a new comparative functional chi-square test for detecting heterogeneity in functional dependencies among contingency tables.
- Revised the examples and documentation to improve usability.
- Added automated test cases into the package.
- Started the NEWS file.
FunChisq 1.0 (2014-03-08)
2014-03-08
- The first release of this package implements the functional chi-square test and a normalized version.