NEWS
psychonetrics 1.0.0
- Bootstrapping now occurs before standardizing the data (thanks to Yiwei Yang and Amanda Montoya)
- Improved support for N=1 models in dlvm1 (e.g., for true ML estimation)
psychonetrics 0.13 (2024-06-20)
- Added bootstrap support:
- Every model now supports 'bootstrap' (to enable bootstrap), 'boot_sub' (for subsampling) and 'boot_resample' (to resample)
- Enabling these will bootstrap the data *once* and create a psychonetrics object for the bootstrap sample
- The function 'aggregate_bootstraps' can be used to aggregate bootstraps:
- use print(...) for some general info
- use parameters(...) for the bootstrap results on the parameters
- use fit(...) for the bootstrap results on the fit indices
- use CIplot(...) for the bootstrap results on the confidence intervals (enable split0=TRUE if model selection is used)
psychonetrics 0.12 (2024-05-21)
- Updates for the dlvm1 model family:
- Changed the starting values for dlvm1 models for better convergence
- Added the 'start' argument to the dlvm1 model family. Use start = "version1" to use pre 0.12 start values
- Added the 'baseline' argument to dlvm1 model family, which now defaults to "stationary_random_intercept". Note: this will change incremental fit indices! To recover old behavior, set baseline = "independence"
- The log(det(kappa)) value used in fit function is now computed in FIML in the same way as computed in ML framework, this should lead to more stability, but might also lead to some different chi-square values
- The startreduce argument in prune() now defaults to 1
- Using "empty" for matrix specification is now deprecated; use "diag" or "zero" instead.
- getmatrix will no longer evaluate a model if it is not computed (now returns start values)
- the 'startreduce' argument in 'prune' now defaults to 1
- Added the 'fixstart' function that can aide in fixing startvalues
- The 'getmatrix' function now supports thresholded PDC matrices
- Diagnostic functions 'checkJacobian' and 'checkFischer' are now exported
- Added the transmod function, which can be used to transform one model type (e.g., using a Cholesky decomposition) to another model type (e.g., a GGM).
- Improved support for models with only one (latent) variable
- Added the 'logbook' function which can be used to more easily retrieve the psychonetrics logbook
- The 'partialprune' function has been updated and now allows for pruning specific matrices as well as returning different models
- Fixed some instances where the 'equal' argument wasn't working
- 'partialprune' now supports multiple matrices
- 'unionmodel' and 'intersectionmodel' now support the 'matrices' argument
- Changed lambda starting value choice to the following: Run an EFA, set the starting values to the loadigs of the factor that has the strongest loadings in the indicators, and set correlations between factors that use the same EFA factor for starting values to 0.8
- added warning for non computed model in parameters()
psychonetrics 0.11.5 (2023-10-03)
- Fixes to support Matrix 1.7-0
- The groupequal, groupfree, fixpar and freepar functions can now handle multiple rows/columns for symmetric matrices
- Fixed a bug in the identification function for ml_lvm models
- Implemented min_sum argument for estimating Ising models on data with a minimum sum score due to selection bias. This method is further discussed in Boot, de Ron, Haslbeck & Epskamp (in preperation). Correcting for selection bias after sum score selection in the Ising model.
- The 'warn_improper' argument in runmodel now defaults to FALSE, omitting the warning that a non-positive defnite matrix was encountered in parameter estimation.
- SEs are now set to NA if the Fischer information matrix could not be inverted normally
- Added an argument 'approximate_SEs' to runmodel to allow for SEs to be approximated using a pseudoinverse
psychonetrics 0.11 (2023-06-05)
- Optimised lambda starting value choice
- Changed warning for when a peusdoinverse was used in model estimation.
- Added 'threshold' argument to the matrix(...) function for significance thresholding
- Fixed a bug in psychonetrics:::emergencystart
psychonetrics 0.10.3
- Added a 'bootstrap' argument to var1() family to facilitate bootstrapping the data
- Fixed a bug where the saturated log-likelihood under FIML estimation could be incorrect
psychonetrics 0.10.2
- Built in a check to find NA sample covs
- added diag argument to getmatrix to obtain diagonal
- diagonal elements are now also thresholded when using getmatrix(..., threshold = ...)
- Added 'threshold' argument to getmatrix()
- Adjusting p-values is now done by default only for the tested p-values. This means that the number of tests is assumed to be the number of parameters of interest (matrices that are to be pruned), not the total number of parameters. Previous behavior can be reproduced with mode = "all" in prune(..).
- panelvar and panelgvar now support arguments within_latent and between_latent
psychonetrics 0.10.1
- Fixed a bug in 'prune' which did not allow intercept/mean vectors to be pruned
psychonetrics 0.10 (2021-10-25)
- ml_tsdlvm1 now orders data by idvar if beepvar is not supplied.
- Added 'CIplot' function
- Standardizing in ts_dlvm1 is now more stable.
- dlvm1 now uses observed variable names as latent variable names when appropriate.
- Fixed a bug with the beepvar argument in psychonetrics
psychonetrics 0.9 (2021-02-23)
- Changed 'rel.tol=1e-10' in the nlminb optimizer to be in line with lavaan
- Added 'warn_improper' argument to runmodel(..)
- The argument 'return_improper' now defaults to TRUE
- Optimizer no longer uses a spectral shift when inverting a semi-positive definite matrix
- Detection of non positive definite matrices is now done faster and should lead to less problems
- Added the 'bounded' argument to runmodel() to define if bounded estimation should be used (defaults to TRUE)
- Diagonals of symmetrical matrices can no longer be estimated to be negative (avoiding Heywood cases, although doing this with a Cholesky decomposition is nicer!)
psychonetrics 0.8.1 (2021-01-28)
- The nlminb estimator now uses more iterations.
psychonetrics 0.8 (2020-10-26)
- The log determinant is now computer better to be able to include fit measures at higher model complexities
- The 'return_improper' argument in runmodel( ) now returns improper estimates without trying different starting values
- Fixed a bug in meta_varcov when using individual estimates of the sampling variation
- Updated optimizer default control parameters
psychonetrics 0.7.6
- Model estimations that used improper estimation (pseudoinverse of variance-covariance matrix) now return with an error unless return_improper = TRUE in runmodel()
- Equality-free MIs are now also computed when all edges are included
psychonetrics 0.7.5
- Fixed a bug with nu_zeta being constrained in multigroup LGC models.
- factorscores now supports multi group models
psychonetrics 0.7.3
- Added the 'covariates_as' argument to latentgrowth() to model covariates with regressions (now default) or covariances
psychonetrics 0.7.2 (2020-06-24)
- Fixed a bug with removing diagonal elements of sigma_epsilon with single indicators
- Fixed another bug with models with only one free indicator
- Added the partialprune function for partially pruning multi-group models
psychonetrics 0.7.1 (2020-04-15)
psychonetrics 0.7 (2020-04-01)
- Major changes
- Major restructuring of underlying core code. Most vital functions have been translated to C++, leading to a large speedup!
- Added C++ based optimizers cpp_L-BFGS-B, cpp_CG, cpp_SANN, and cpp_Nelder. These are faster but slightly less stable than nlminb (now the default optimizer).
- Verbose now defaults to FALSE everywhere. This can be set with the setverbose function for a model
- Added meta-analysis model for varcov family (meta_varcov)
- The ml_tsdlvm1 function now allows for multi-kevek tsdlvm1 models (dlvm1 models) to be specified using syntax familiar to those using mlVAR and graphicalVAR
- Minor changes
- Numerous small bugfixes and improvements (e.g., better starting values)
- Added function 'fullFIML' to use true FIML computing the likelihood per row
- Changed 'WLS.V' to 'WLS.W'
- Several warning messages have been updated
psychonetrics 0.6 (2020-02-21)
- The 'dlvm1' model family now also returns the implied latent variance-covarriance matrix as 'sigma_eta_within'
- The latent lag-1 matrix is also returned as 'sigma_eta_within_lag1'
- The dlvm1 model family now no longer requires a 'lambda' matrix to be specified (will default to a panelvar model)
- Most model families now support the 'standardized' argument, which can be set to 'z' for z-scores (helps convergence) or 'quantile' for a semiparametric transformation
- Added the ml_lvm family for two-level random intercept latent variable models
- Added the simplestructure function to easily make a lambda matrix
- addalpha in modelsearch now works as expected
- addalpha and prunealpha now default to 0.01 in 'modelsearch'
- recursive now defaults to FALSE in 'prune'
psychonetrics 0.5.1 (2020-01-26)
- Fixed a bug with responses being missing when summary statistics are used in Ising()
- Fixed a bug with covtype sometimes being set to UB when corinput = TRUE
- Added DOI to description field
psychonetrics 0.5.0 (2020-01-25)
- The Ising model is now supported (only ML estimation) through the Ising() model function
- Added the covtype option to several models, controlling if maximum likelihood or unbiased estimates are used for the input covariances
- Added the function 'covML' for maximum likelihood covariance estimates
psychonetrics 0.4.1 (2019-12-18)
- Small fix for CRAN checks
psychonetrics 0.4 (2019-12-17)
- type = "cor" is now supported in varcov, with rho representing the correlations and SD the diagonal standard deviations matrix.
- The 'corr' function is now implemented as shorthand for varcov(..., type = "cor")
- The scale of the Fisher information matrix has been adjusted to portray unit information to be similar to Lavaan
- The getVCOV function has been added to obtain the estimated asymptotic var-cov matrix of the parameters.
- The meanstructure can now be ignored using meanstructure = TRUE in the following model families:
- varcov
- A correlation matrix can now be used as input (detected or set with corinput = TRUE) for the following families:
- varcov (type = "ggm" and type = "cor")
- The WLS estimator will now not investigate means when meanstructure is ignored, and variances when a correlaton matrix is used as input.
- The WLS weights matrix must be of the appropriate dimensions!
- The WLS.V matrix will no longer be adjusted for missing means.
- Added 'startEPC' argument to stepup and freepar
- Added the 'modelsearch' function for extensive stepwise model search
- Fixed several bugs and improved starting values in several models
psychonetrics 0.3.3 (2019-07-06)
- prune() now removes diagonal values of temporal effects
- psychonetrics now requires R 3.6
- Some C++ fixes for Solaris
psychonetrics 0.3.2 (2019-06-28)
- The parameters function now invisibly returns the parameter estimate data frame
- The MIs function now invisibly returns a data frame with MI estimates
- fit now invisibly returns a data frame with fit measure estimates
psychonetrics 0.3.1
- Several help-files are now updated with executable examples
psychonetrics 0.3.0
- First version to be submitted to CRAN