{"action":"reopened","issue":{"url":"https://api.github.com/repos/sem-in-r/seminr/issues/84","repository_url":"https://api.github.com/repos/sem-in-r/seminr","labels_url":"https://api.github.com/repos/sem-in-r/seminr/issues/84/labels{/name}","comments_url":"https://api.github.com/repos/sem-in-r/seminr/issues/84/comments","events_url":"https://api.github.com/repos/sem-in-r/seminr/issues/84/events","html_url":"https://github.com/sem-in-r/seminr/issues/84","id":368094279,"node_id":"MDU6SXNzdWUzNjgwOTQyNzk=","number":84,"title":"Bug in interactions","user":{"login":"storopoli","id":43353831,"node_id":"MDQ6VXNlcjQzMzUzODMx","avatar_url":"https://avatars0.githubusercontent.com/u/43353831?v=4","gravatar_id":"","url":"https://api.github.com/users/storopoli","html_url":"https://github.com/storopoli","followers_url":"https://api.github.com/users/storopoli/followers","following_url":"https://api.github.com/users/storopoli/following{/other_user}","gists_url":"https://api.github.com/users/storopoli/gists{/gist_id}","starred_url":"https://api.github.com/users/storopoli/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/storopoli/subscriptions","organizations_url":"https://api.github.com/users/storopoli/orgs","repos_url":"https://api.github.com/users/storopoli/repos","events_url":"https://api.github.com/users/storopoli/events{/privacy}","received_events_url":"https://api.github.com/users/storopoli/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":8,"created_at":"2018-10-09T08:25:19Z","updated_at":"2018-10-10T10:59:11Z","closed_at":null,"author_association":"NONE","body":"```\r\n#### FIRST MODEL 1 ####\r\n# Creating our measurement model\r\nmodel1_mm <- constructs(\r\n  reflective(\"IP\", multi_items(\"X\", 1:21)),\r\n  composite(\"CO\", single_item(\"PECI\"), weights = mode_A),\r\n  reflective(\"Acquiescence\", multi_items(\"AQ\", 1:3)),\r\n  reflective(\"Compromise\", multi_items(\"COMP\", 1:3)),\r\n  reflective(\"Avoid\", multi_items(\"AVO\", 1:3)),\r\n  reflective(\"Defy\", multi_items(\"DEF\", 1:4)),\r\n  reflective(\"Manipulate\", multi_items(\"MAN\", 1:3)),\r\n  reflective(\"Control\", single_item(\"Control_Var_2\"))\r\n  )\r\n# Interaction constructs must be created after the measurement model is defined.\r\n# We are using the orthogonalization method as per Henseler & Chin (2010)\r\nmodel1_xm <- interactions(\r\n  interaction_ortho(\"IP\", \"CO\"))\r\n# Structural model\r\n#  note: interactions should be the names of its main constructs joined by a '*' in between.\r\nmodel1_sm <- relationships(\r\n  paths(from = \"IP\", to = c(\"Acquiescence\", \"Compromise\", \"Avoid\", \"Defy\", \"Manipulate\")),\r\n  paths(from = \"CO\", to = c(\"Acquiescence\", \"Compromise\", \"Avoid\", \"Defy\", \"Manipulate\")),\r\n  paths(from = \"Control\", to = c(\"Acquiescence\", \"Compromise\", \"Avoid\", \"Defy\", \"Manipulate\")),\r\n  paths(from = \"IP*CO\", to = c(\"Acquiescence\", \"Compromise\", \"Avoid\", \"Defy\", \"Manipulate\")))\r\n# Load data, assemble model, and estimate using simplePLS\r\nmodel1_pls <- estimate_pls(data = data,\r\n                         measurement_model = model1_mm,\r\n                         interactions = model1_xm,\r\n                         structural_model = model1_sm,\r\n                         inner_weights = path_weighting)\r\n```\r\n\r\nGives this error\r\n\r\n> Generating the seminr model\r\n> All 96 observations are valid.\r\n> Error in mm[mm[, \"construct\"] == construct2, ][, \"measurement\"] : \r\n>   incorrect number of dimensions\r\n\r\nthis is my names(data)\r\n```\r\nnames(data)\r\n  [1] \"Response_ID\"      \"IP_Address\"       \"Timestamp\"        \"Duplicate\"        \"Time_Taken\"      \r\n  [6] \"Seq_Number\"       \"Country_Code\"     \"Region\"           \"Response_Status\"  \"Browser\"         \r\n [11] \"Device\"           \"Operating_System\" \"Language\"         \"Q45\"              \"Qualificadora\"   \r\n [16] \"X1\"               \"X2\"               \"X3\"               \"X4\"               \"X5\"              \r\n [21] \"X6\"               \"X7\"               \"X8\"               \"X9\"               \"X10\"             \r\n [26] \"X11\"              \"X12\"              \"X13\"              \"X14\"              \"X15\"             \r\n [31] \"X16\"              \"X17\"              \"X18\"              \"X19\"              \"X20\"             \r\n [36] \"X21\"              \"AQ1\"              \"AQ2\"              \"AQ3\"              \"COMP1\"           \r\n [41] \"COMP2\"            \"COMP3\"            \"AVO1\"             \"AVO2\"             \"AVO3\"            \r\n [46] \"DEF1\"             \"DEF2\"             \"DEF3\"             \"DEF4\"             \"MAN1\"            \r\n [51] \"MAN2\"             \"MAN3\"             \"X38\"              \"X39\"              \"X40\"             \r\n [56] \"X41\"              \"X42\"              \"X43\"              \"X44\"              \"X45\"             \r\n [61] \"X46\"              \"X47\"              \"X48\"              \"X49\"              \"X50\"             \r\n [66] \"X51\"              \"X52\"              \"X53\"              \"X54\"              \"X55\"             \r\n [71] \"X56\"              \"X57\"              \"X58\"              \"X59\"              \"X60\"             \r\n [76] \"X61\"              \"X62\"              \"X63\"              \"X64\"              \"X65\"             \r\n [81] \"X66\"              \"X67\"              \"X68\"              \"X69\"              \"X70\"             \r\n [86] \"X71\"              \"X72\"              \"X73\"              \"X74\"              \"X75\"             \r\n [91] \"X76\"              \"X77\"              \"X78\"              \"X79\"              \"X80\"             \r\n [96] \"X81\"              \"X82\"              \"Priority_Time\"    \"Priority_Cost\"    \"Priority_Scope\"  \r\n[101] \"Control_Var_1\"    \"Control_Var_2\"    \"Control_Var_3\"    \"Opinion_Survey\"   \"PECI\"  \r\n```          "}}
{"actor":{"display_login":"storopoli"}}