Coder Social home page Coder Social logo

jaspfactor's People

Contributors

alexanderlynl avatar amirmasoudabdol avatar boutinb avatar brandmaier avatar francotisocco avatar jokeyser avatar jorisgoosen avatar juliuspfadt avatar kosugitti avatar kucharssim avatar lslindeloo avatar patc3 avatar probalino avatar rensdofferhoff avatar shun2wang avatar timkdj avatar tomtomme avatar vandenman avatar vankesteren avatar weblate avatar ykunisato avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

jaspfactor's Issues

Make tables for multi group CFA aligned with SEM tables structure

So there is a bit of a cluttered output in the tables when running a multi group cfa:
For some tables the structure is:
Group1

  • table1
  • table2

Group2

  • table1
  • table2
    Screenshot 2023-03-21 at 15 24 54

For instance the residual Cov table is differently structured which aligns with the SEM module's multi group output:
Table1:

  • group1
  • group2

Table2:

  • group1
  • group2
    Screenshot 2023-03-21 at 15 25 00

I would like to make this consistent. But I rather start with it, once the other PRs are merged. Any thoughts @Kucharssim?

Labelling of factor intercepts in model.syntax with grouping variable leads to fit issues (fewer df)

To reproduce this one has to use the latest version for jaspFactor, which might not be in the nightlies yet.
However, in R one can:

library(lavaan)
dt <- read.csv("https://raw.githubusercontent.com/jasp-stats/jasp-desktop/development/Resources/Data%20Sets/Data%20Library/14.%20SEM/Grand%20Point%20Average.csv", header = T)

mod <- "
f1 =~ gpa1+ gpa2+ gpa3+ gpa4+ gpa5+ gpa6
f2 =~ job3+ job4+ job5+ job6
f1 ~ c(0, NA)*1
f2 ~ c(0, NA)*1
"
fit <- cfa(mod, dt, std.lv = TRUE, group = "admitted", meanstructure = TRUE)
fitmeasures(fit)
summary(fit)

this part is also what is produced through JASP:

f1 ~ c(0, NA) * 1
f2 ~ c(0, NA) * 1

stems from here: https://github.com/juliuspf/jaspFactor/blob/invarianceFix/R/confirmatoryfactoranalysis.R#L323-L333
I am confused and wonder why this piece of model syntax is added. It seems sufficient to just set meanstructure to TRUE.

I obtain standard error issues (can't be calculated) if the model syntax is specified like above, but no issues when only meanstructure=TRUE and the piece of code is omitted from the model syntax. All other estimates stay equal.

In terms of model syntax this should mean that the mean of the first factor for group 1 is set to 0 and the mean for the second group is forced to be a free parameter.... but why

As I understand this, with meanstructure you can either estimate the latent means or the manifest means. By default it is always the manifest means that are estimated, and only if one forces the manifest means to be zero in the model.syntax will the model estimate the latent means. But we do not have that option in JASP, so in any case the latent means will always be zero.

I suggest to not label the intercepts for the factors when we have multiple groups since meanstructure=TRUE is specified either way when the meanstructure option is chosen. The other parameter estimates won't change, it would only lead to fewer convergence issues since there are two degrees of freedom more.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.