{"size":{"Width":490,"Height":626},"appearance":{"background":null,"padding":0,"font":{"family":"Courier New","size":10.0,"bold":false,"italic":false,"underline":false,"strikeout":false,"color":"rgb(0,0,0)"},"border":{"on":true,"size":0.0,"style":"solid","color":"#666"},"text":{"wrap":false,"hAlign":"left","vAlign":"top"}},"outputType":"TEXT","widgetState":null,"wikiPageTitle":null,"outputs":{"text":"lavaan 0.6-3 ended normally after 68 iterations\n\n Optimization method NLMINB\n Number of free parameters 31\n\n Number of observations 75\n\n Estimator ML\n Model Fit Test Statistic 38.125\n Degrees of freedom 35\n P-value (Chi-square) 0.329\n","warning":""},"secondsTaken":0.56249779999999994,"updated":"2019-03-21T06:48:25.7125546Z","lastUpdatedMessage":null,"executedCode":"# Load the package for computing the SEM\nlibrary(lavaan)\n\n# Describe the model\nmodel <- '\n # measurement model\n ind60 =~ x1 + x2 + x3\n dem60 =~ y1 + y2 + y3 + y4\n dem65 =~ y5 + y6 + y7 + y8\n # regressions\n dem60 ~ ind60\n dem65 ~ ind60 + dem60\n # residual correlations\n y1 ~~ y5\n y2 ~~ y4 + y6\n y3 ~~ y7\n y4 ~~ y8\n y6 ~~ y8'\n\n# Assemble the data into a data frame, using the variable names\n# from the raw data\ndf = data.frame(y1, y2, y3, y4, y5, y6, y7, y8, x1, x2, x3)\n# Fit the model\nfit <- sem(model, data = df)","lastSavedCode":null,"highlightedCodeSpans":[{"start":458,"length":2,"index":1},{"start":462,"length":2,"index":1},{"start":466,"length":2,"index":1},{"start":470,"length":2,"index":1},{"start":474,"length":2,"index":1},{"start":478,"length":2,"index":1},{"start":482,"length":2,"index":1},{"start":486,"length":2,"index":1},{"start":490,"length":2,"index":1},{"start":494,"length":2,"index":1},{"start":498,"length":2,"index":1}],"tableTransformations":"<TabularTransformer>\r\n <TabularTransform type=\"Truncation\" truncationHeaderType=\"Column\" />\r\n <TabularTransform />\r\n</TabularTransformer>","tabularFilteringOptions":null,"hasGuiControls":false,"calculating":"Idle","showDebug":false,"layout":"Top","vSplit":0.6387028753993611,"hSplit":0.45,"updateWarnings":true,"updateMode":"Automatic","warnSlow":true,"Options":{"debugconsole":false,"codeposition":"Top","splitH":0.45,"splitV":0.6387028753993611,"update warnings":true,"updating":"Automatic","warn slow":true}}