{"action":"closed","issue":{"url":"https://api.github.com/repos/yrosseel/lavaan/issues/84","repository_url":"https://api.github.com/repos/yrosseel/lavaan","labels_url":"https://api.github.com/repos/yrosseel/lavaan/issues/84/labels{/name}","comments_url":"https://api.github.com/repos/yrosseel/lavaan/issues/84/comments","events_url":"https://api.github.com/repos/yrosseel/lavaan/issues/84/events","html_url":"https://github.com/yrosseel/lavaan/issues/84","id":271165407,"number":84,"title":"Problem with mixing parameter labels and constraints","user":{"login":"michaelhallquist","id":284491,"avatar_url":"https://avatars3.githubusercontent.com/u/284491?v=4","gravatar_id":"","url":"https://api.github.com/users/michaelhallquist","html_url":"https://github.com/michaelhallquist","followers_url":"https://api.github.com/users/michaelhallquist/followers","following_url":"https://api.github.com/users/michaelhallquist/following{/other_user}","gists_url":"https://api.github.com/users/michaelhallquist/gists{/gist_id}","starred_url":"https://api.github.com/users/michaelhallquist/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/michaelhallquist/subscriptions","organizations_url":"https://api.github.com/users/michaelhallquist/orgs","repos_url":"https://api.github.com/users/michaelhallquist/repos","events_url":"https://api.github.com/users/michaelhallquist/events{/privacy}","received_events_url":"https://api.github.com/users/michaelhallquist/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2017-11-04T04:20:38Z","updated_at":"2018-04-24T15:33:07Z","closed_at":"2018-04-24T15:33:06Z","author_association":"CONTRIBUTOR","body":"Hi Yves,\r\n\r\nI would like to identify a multiple-groups measurement invariance model (e.g., weak) using the 'unit variance identification' approach (aka standardized factors). In the multiple-groups case, all loadings are free parameters that are equated between groups. The factor variances are fixed to 1 in one group, but free in the others. I tried to specify this using a parameter vector that contains a 1 for one group, but a label for the other. This led lavaan to apply the label to both groups as an equality constraint. Syntax follows:\r\n\r\n```\r\n#trying to mix constraints and labels to achieve ULI in two groups\r\nmmod_uvi <-'\r\n  visual  =~ NA*x1 + x2 + x3\r\n  textual =~ NA*x4 + x5 + x6\r\n  speed   =~ NA*x7 + x8 + x9 \r\n\r\n#does not work -- applies an equality constraint\r\nvisual ~~ c(1, v2)*visual\r\ntextual ~~ c(1, t2)*textual\r\nspeed ~~ c(1, s3)*speed\r\n'\r\n\r\nmweak_uvi_bad <- sem(mmod_uvi, data = HolzingerSwineford1939, std.lv=FALSE, group = \"school\", group.equal=\"loadings\", meanstructure=TRUE)\r\n```\r\n\r\nThanks for continuing to develop this excellent package!\r\nMichael"}}
{"actor":{"display_login":"yrosseel"}}