Skip to content

Commit cae6b8c

Browse files
Develop (#129)
* Adding Higher order construct automation. Adsded a demo for HOC. * Shameless green. The code is working. * Added tests - compared to SmartPLS for consistency. * Shameless green. Added a function for estimating two-stage interactions. * Updated documentation for HOC. Addressed issue #108 regarding the link to vignette * confirmed results for a two-stage interaction and higher order construct. Added a test * Extracted a function from model.R * # Updated interactions functions to subset matrix according to quadratic effect. Ie the interaction of a construct with itself. All three interaction methods orthogonal, product indicators and two stage can perform self-interactions * Resolved Issue #75 regarding HTMT being unstable. * Give construct objects class names * # Added a .travis.yml instruction to test on multiple versions of R. * Refactor conditional checks in composite() function * Updating all fixtures for V3.5.X such that testing on old versions tests new methods for HOC and interactions * Addresses Issue #106 to add a changelog file (#118) * Addresses Issue #106 to add a changelog file * Addresses Issue #75 * Updated file naming in R/ to address Issue #64 * Addresses Issue #56 to automate Higher Order Constructs * Addresses Issue #61 * Addresses Issue #27. * Re-created docs * Descriptives (#119) * Feature: descriptive statistics for items and constructs * issue #54 * Adding space after commas for readability * removed get_ prefixes on function names * Added tests. Compatible with results from SmartPLS. * Added tests * Updated travis.yml * Changed the return object to DRY * This PR is for reporting bootstrapping results (#120) * First commit for reporting bootstrapped paths, loadings, weights and HTMT. Addresses Issue 112 in part * Added tests for bootstrap reporting * Updated changelog * Attends to Issue #121. constructs() returns a list and created interaction() construct type * Not working yet.... * Basic fSquared function for effect size of iv on dv (#123) * Updated changelog, vignette, tests for fSquared and minor changes to fSquared function. (#124) * changing parameter names * All three interaction methods working with new syntax * Can assign mode A and mode B to interactions. Working * interactions and higher order construct all working. * Updating tests - but not fixtures. * # Updated tests for new syntax * R CMD Check no warnings errors or notes * # 122 * Updated syntax for interaction terms and final update to vignette * Release 1.0.0 (#127) * R CMD Check --as_cran no Warnings, Errors, or Notes. Bumped version and updated changelog and cran-comments.Added badges to the documents * Updated README * Updated the CRAN URL ref in the REadme * Bug fix devel (#128) * Version 0.5.3 (#88) * Made bootstrap reproducible. * Modified all expect_equal() tests to have a tolerance of 0.00001 for floating point operations on 32bit platforms. R CMD CHECK passes all tests pass. * Correcting for single item bug fix in Issue #84 * Changed logic in PLSc * create demo for single item interactions * Adresses Issue #84 single item interaction bug * Coerce rhoA to 1 for all interactions for calculation of PLSc * bumped version and date. * Changed version number * Unsure about how to report reliabilities for consistent interactions. * Remove this demo * Added tests to address Issue #84 Single item interaction bug * Bumped version number, date and added cran-comments. Amended the vignette to reflect the change in allowing PLSc on interactions. * Version 0.5.3 (#89) * Made bootstrap reproducible. * Modified all expect_equal() tests to have a tolerance of 0.00001 for floating point operations on 32bit platforms. R CMD CHECK passes all tests pass. * Correcting for single item bug fix in Issue #84 * Changed logic in PLSc * create demo for single item interactions * Adresses Issue #84 single item interaction bug * Coerce rhoA to 1 for all interactions for calculation of PLSc * bumped version and date. * Changed version number * Unsure about how to report reliabilities for consistent interactions. * Remove this demo * Added tests to address Issue #84 Single item interaction bug * Bumped version number, date and added cran-comments. Amended the vignette to reflect the change in allowing PLSc on interactions. * Develop (#91) * Made bootstrap reproducible. * Modified all expect_equal() tests to have a tolerance of 0.00001 for floating point operations on 32bit platforms. R CMD CHECK passes all tests pass. * Correcting for single item bug fix in Issue #84 * Changed logic in PLSc * create demo for single item interactions * Adresses Issue #84 single item interaction bug * Coerce rhoA to 1 for all interactions for calculation of PLSc * bumped version and date. * Changed version number * Unsure about how to report reliabilities for consistent interactions. * Remove this demo * Added tests to address Issue #84 Single item interaction bug * Bumped version number, date and added cran-comments. Amended the vignette to reflect the change in allowing PLSc on interactions. * Develop (#92) * Made bootstrap reproducible. * Modified all expect_equal() tests to have a tolerance of 0.00001 for floating point operations on 32bit platforms. R CMD CHECK passes all tests pass. * Correcting for single item bug fix in Issue #84 * Changed logic in PLSc * create demo for single item interactions * Adresses Issue #84 single item interaction bug * Coerce rhoA to 1 for all interactions for calculation of PLSc * bumped version and date. * Changed version number * Unsure about how to report reliabilities for consistent interactions. * Remove this demo * Added tests to address Issue #84 Single item interaction bug * Bumped version number, date and added cran-comments. Amended the vignette to reflect the change in allowing PLSc on interactions. * Release 1.0.0 (#126) * Adding Higher order construct automation. Adsded a demo for HOC. * Shameless green. The code is working. * Added tests - compared to SmartPLS for consistency. * Shameless green. Added a function for estimating two-stage interactions. * Updated documentation for HOC. Addressed issue #108 regarding the link to vignette * confirmed results for a two-stage interaction and higher order construct. Added a test * Extracted a function from model.R * # Updated interactions functions to subset matrix according to quadratic effect. Ie the interaction of a construct with itself. All three interaction methods orthogonal, product indicators and two stage can perform self-interactions * Resolved Issue #75 regarding HTMT being unstable. * Give construct objects class names * # Added a .travis.yml instruction to test on multiple versions of R. * Refactor conditional checks in composite() function * Updating all fixtures for V3.5.X such that testing on old versions tests new methods for HOC and interactions * Addresses Issue #106 to add a changelog file (#118) * Addresses Issue #106 to add a changelog file * Addresses Issue #75 * Updated file naming in R/ to address Issue #64 * Addresses Issue #56 to automate Higher Order Constructs * Addresses Issue #61 * Addresses Issue #27. * Re-created docs * Descriptives (#119) * Feature: descriptive statistics for items and constructs * issue #54 * Adding space after commas for readability * removed get_ prefixes on function names * Added tests. Compatible with results from SmartPLS. * Added tests * Updated travis.yml * Changed the return object to DRY * This PR is for reporting bootstrapping results (#120) * First commit for reporting bootstrapped paths, loadings, weights and HTMT. Addresses Issue 112 in part * Added tests for bootstrap reporting * Updated changelog * Attends to Issue #121. constructs() returns a list and created interaction() construct type * Not working yet.... * Basic fSquared function for effect size of iv on dv (#123) * Updated changelog, vignette, tests for fSquared and minor changes to fSquared function. (#124) * changing parameter names * All three interaction methods working with new syntax * Can assign mode A and mode B to interactions. Working * interactions and higher order construct all working. * Updating tests - but not fixtures. * # Updated tests for new syntax * R CMD Check no warnings errors or notes * # 122 * Updated syntax for interaction terms and final update to vignette * R CMD Check --as_cran no Warnings, Errors, or Notes. Bumped version and updated changelog and cran-comments.Added badges to the documents * Updated README * Updated the CRAN URL ref in the REadme * Updated code to correct a bug in new V4.0.0 of R which assigns matrices the class of c("matrix","array") and not just "matrix". * Another if(class()) updated * Bumped version, updated changelog, and updated cran-comments
1 parent b5a1d68 commit cae6b8c

File tree

4 files changed

+11
-39
lines changed

4 files changed

+11
-39
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
88
- Change code syntax to remove interactions() method and add interactions and HOC to composites()
99
- Document all the syntax and features
1010

11+
## [1.0.1] - 2019-12-11
12+
### Changed
13+
- Patched if() conditionals including class() to reflect new CRAN class of matrix as c("matrix","array") in R V4.0.0
14+
1115
## [0.1.0] - 2019-09-27
1216
### Added
1317
- A changelog

DESCRIPTION

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
Package: seminr
22
Type: Package
33
Title: Domain-Specific Language for Building PLS Structural Equation Models
4-
Version: 1.0.0
5-
Date: 2019-09-27
4+
Version: 1.0.1
5+
Date: 2019-12-11
66
Authors@R: c(person("Soumya", "Ray",
77
email = "soumya.ray@gmail.com", role = c("aut", "ths")),
8-
person("Nicholas", "Danks",
8+
person("Nicholas Patrick", "Danks",
99
email = "nicholasdanks@hotmail.com", role = c("aut","cre")),
1010
person("Juan Manuel Velasquez", "Estrada", role = "aut"))
1111
Description: A powerful, easy to write and easy to modify syntax for

R/library.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ get_measure_mode <- function(construct,mmMatrix) {
1515
items_per_mode <- function(construct, mode,mmMatrix) {
1616
constructmatrix <- mmMatrix[mmMatrix[,"construct"]==construct,c("measurement","type")]
1717
# If single item construct
18-
if (class(constructmatrix) == "character") {
18+
if (class(constructmatrix)[1] != "matrix") {
1919
constructmatrix = t(as.matrix(constructmatrix))
2020
}
2121
return(constructmatrix[constructmatrix[,"type"] == mode,"measurement"])
@@ -26,7 +26,7 @@ items_per_mode <- function(construct, mode,mmMatrix) {
2626
mmMatrix_per_construct <- function(construct, mmMatrix) {
2727
constructmatrix <- mmMatrix[mmMatrix[,"construct"]==construct,c("construct","measurement","type")]
2828
# If single item construct
29-
if (class(constructmatrix) == "character") {
29+
if (class(constructmatrix)[1] != "matrix") {
3030
constructmatrix = t(as.matrix(constructmatrix))
3131
}
3232
return(constructmatrix)

cran-comments.md

Lines changed: 2 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -1,38 +1,6 @@
11
## Resubmission
22
This is a resubmission. In this version I have:
33

4-
## [0.1.0] - 2019-09-27
5-
### Added
6-
- A changelog
7-
- A new feature for automated calculation of HOC
8-
- A new feature for two-stage calculation of interactions
9-
- A file for all references and citations
10-
- A return object in summary(boot_seminr_model) containing boot mean, SD, tvalue, and CIs for bootstrapped paths, loadings, weights and HTMT,
11-
- A test for the bootstrap summary return object
12-
- Descriptive statistics for item and construct data
13-
- S3 print method for class "table_output" for printing generic tables
14-
- new method interaction_term() for specifying a interaction construct
15-
- A fSquare function to calculating fSquared
16-
- A test for fSquared function
17-
4+
## [1.0.1] - 2019-12-11
185
### Changed
19-
- Fixtures for evaluating bootstrap HTMT for versions of R < 3.6.0
20-
- Changed the R/* file naming to R/estimate_ R/feature_ R/evaluate_ etc.
21-
- Summary S3 method to return data descriptives in summary object
22-
- constructs() method now returns a list with classes
23-
- Changed references to include Cohen (2013)
24-
- Updated vignette to reflect fSquare function
25-
26-
### Fixed
27-
- Modified calculation of HTMT to use absolute correlation matrices in order to make HTMT stable
28-
29-
30-
## Test environments
31-
* macOS High Sierra 10.13.3 (on travis-ci), R 3.5.3
32-
* macOS High Sierra 10.13.3 (on travis-ci), R 3.6.1
33-
* Ubuntu 16.04.6 LTS (on travis-ci), R 3.5.3
34-
* Ubuntu 16.04.6 LTS (on travis-ci), R 3.6.1
35-
* win-builder (3.6.1 and 3.5.3)
36-
37-
## R CMD check results
38-
There were no ERRORs or WARNINGs or NOTEs.
6+
- Patched if() conditionals including class() to reflect new CRAN class of matrix as c("matrix","array") in R V4.0.0

0 commit comments

Comments
 (0)