This is the crucial part: do you have the same number of time points for
each bank? If yes, then you can use lavaan. If not, you have unbalanced
data, and you need to use mixed models.
> Fist of all, can I use lavaan's growth curve model ("growth") in this
> instance? The example given on the tutorial is for either time-varying
> variables (c) that influence the outcome (DV) or time-invariant
> variables (x1 & x2) which influence the slope (s) and intercept (i).
> What about time varying variables that influence the slope and
> intercept? I couldn't find an example for this syntax.
You can combine those, no problem.
> Also, how do I specify the "groups" (i.e. different banks) in my
> analysis? It is actually possible to do a multi-level growth curve model
> in lavaan (or R for that matter)?
You may have to reshape your data so that they are in 'wide' format:
each row is a single bank (and the repeated measures are multiple columns).
> Last but not least, I could find how to import a multilevel dataset in
> R. My dataset is basically a 3-dimentional matrix (different variables
> for different firms across time) so how do I input that via SPSS (or
> notepad?)?
You should read in the matrix/data in R, and 'reshape' your data until
it is a 2D data.frame, with a single row per bank. But that is a
question for another forum...
Yves.
--
You received this message because you are subscribed to a topic in the Google Groups "lavaan" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/lavaan/uZgXzgBoEKA/unsubscribe.
To unsubscribe from this group and all its topics, send an email to lavaan+unsubscribe@googlegroups.com.
To post to this group, send email to lav...@googlegroups.com.
Visit this group at http://groups.google.com/group/lavaan.
For more options, visit https://groups.google.com/d/optout.
Yves.
I tried running the model using RStudio but I got the following syntax error message which I don't know how to interpret
Error in lavParseModelString(model) :
lavaan ERROR: syntax error in lavaan model syntax
Yves.
I hate to bother you again and I wish it was over, but I'm afraid I received another error message this time:Error in parse(text = x) : <text>:1:84: unexpected INCOMPLETE_STRING1: ~ CEO_2013+Brand_2013+Size_2013+Tier_1_2013+Acquisitions_2013+Ind_ROA_2013+Age+TARP'This is the last equation of the model, but I don't know what "unexpected incomplete string" means exactly.
It looks like your last line is missing "ROA_2013" as the regressand. It would not make sense if the last line begins with an operator (~).
Also, I'll reiterate Yves' statement that the last line of your text file must be a blank line, which operates as the "end-of-file character" when R (or Mplus, LISREL, etc.) reads from text files.
--
You received this message because you are subscribed to a topic in the Google Groups "lavaan" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/lavaan/uZgXzgBoEKA/unsubscribe.
To unsubscribe from this group and all its topics, send an email to lavaan+un...@googlegroups.com.
--
Error in lavParseModelString(model) :lavaan ERROR: syntax error in lavaan model syntax
Error in lav_data_full(data = data, group = group, group.label = group.label, :lavaan ERROR: some variables have no values (only missings) or no variance
> lavParseModelString(myModel)$lhs[1] "i.ROA" "i.ROA" "i.ROA" "i.ROA" "i.ROA"[6] "i.ROA" "i.ROA" "s.ROA" "s.ROA" "s.ROA"[11] "s.ROA" "s.ROA" "s.ROA" "s.ROA" "i.hc"[16] "i.hc" "i.hc" "i.hc" "i.hc" "i.hc"[21] "i.hc" "s.hc" "s.hc" "s.hc" "s.hc"[26] "s.hc" "s.hc" "s.hc" "i.lc" "i.lc"[31] "i.lc" "i.lc" "i.lc" "i.lc" "i.lc"[36] "s.lc" "s.lc" "s.lc" "s.lc" "s.lc"[41] "s.lc" "s.lc" "i.pf" "i.pf" "i.pf"[46] "i.pf" "i.pf" "i.pf" "i.pf" "s.pf"[51] "s.pf" "s.pf" "s.pf" "s.pf" "s.pf"[56] "s.pf" "i.p" "i.p" "i.p" "i.p"[61] "i.p" "i.p" "i.p" "s.p" "s.p"[66] "s.p" "s.p" "s.p" "s.p" "s.p"[71] "i.dt" "i.dt" "i.dt" "i.dt" "i.dt"[76] "i.dt" "i.dt" "s.dt" "s.dt" "s.dt"[81] "s.dt" "s.dt" "s.dt" "s.dt" "i.dc"[86] "i.dc" "i.dc" "i.dc" "i.dc" "i.dc"[91] "i.dc" "s.dc" "s.dc" "s.dc" "s.dc"[96] "s.dc" "s.dc" "s.dc" "i.ROA" "i.ROA"[101] "i.ROA" "i.ROA" "i.ROA" "i.ROA" "s.ROA"[106] "s.ROA" "s.ROA" "s.ROA" "s.ROA" "s.ROA"[111] "ROA_2007" "ROA_2007" "ROA_2007" "ROA_2007" "ROA_2007"[116] "ROA_2007" "ROA_2007" "ROA_2007" "ROA_2008" "ROA_2008"[121] "ROA_2008" "ROA_2008" "ROA_2008" "ROA_2008" "ROA_2008"[126] "ROA_2008" "ROA_2009" "ROA_2009" "ROA_2009" "ROA_2009"[131] "ROA_2009" "ROA_2009" "ROA_2009" "ROA_2009" "ROA_2010"[136] "ROA_2010" "ROA_2010" "ROA_2010" "ROA_2010" "ROA_2010"[141] "ROA_2010" "ROA_2010" "ROA_2011" "ROA_2011" "ROA_2011"[146] "ROA_2011" "ROA_2011" "ROA_2011" "ROA_2011" "ROA_2011"[151] "ROA_2012" "ROA_2012" "ROA_2012" "ROA_2012" "ROA_2012"[156] "ROA_2012" "ROA_2012" "ROA_2012" "ROA_2013" "ROA_2013"[161] "ROA_2013" "ROA_2013" "ROA_2013" "ROA_2013" "ROA_2013"[166] "ROA_2013"$op[1] "=~" "=~" "=~" "=~" "=~" "=~" "=~" "=~" "=~" "=~" "=~"[12] "=~" "=~" "=~" "=~" "=~" "=~" "=~" "=~" "=~" "=~" "=~"[23] "=~" "=~" "=~" "=~" "=~" "=~" "=~" "=~" "=~" "=~" "=~"[34] "=~" "=~" "=~" "=~" "=~" "=~" "=~" "=~" "=~" "=~" "=~"[45] "=~" "=~" "=~" "=~" "=~" "=~" "=~" "=~" "=~" "=~" "=~"[56] "=~" "=~" "=~" "=~" "=~" "=~" "=~" "=~" "=~" "=~" "=~"[67] "=~" "=~" "=~" "=~" "=~" "=~" "=~" "=~" "=~" "=~" "=~"[78] "=~" "=~" "=~" "=~" "=~" "=~" "=~" "=~" "=~" "=~" "=~"[89] "=~" "=~" "=~" "=~" "=~" "=~" "=~" "=~" "=~" "=~" "~"[100] "~" "~" "~" "~" "~" "~" "~" "~" "~" "~" "~"[111] "~" "~" "~" "~" "~" "~" "~" "~" "~" "~" "~"[122] "~" "~" "~" "~" "~" "~" "~" "~" "~" "~" "~"[133] "~" "~" "~" "~" "~" "~" "~" "~" "~" "~" "~"[144] "~" "~" "~" "~" "~" "~" "~" "~" "~" "~" "~"[155] "~" "~" "~" "~" "~" "~" "~" "~" "~" "~" "~"[166] "~"$rhs[1] "ROA_2007" "ROA_2008"[3] "ROA_2009" "ROA_2010"[5] "ROA_2011" "ROA_2012"[7] "ROA_2013" "ROA_2007"[9] "ROA_2008" "ROA_2009"[11] "ROA_2010" "ROA_2011"[13] "ROA_2012" "ROA_2013"[15] "High_constr_2007" "High_constr_2008"[17] "High_constr_2009" "High_constr_2010"[19] "High_constr_2011" "High_constr_2012"[21] "High_constr_2013" "High_constr_2007"[23] "High_constr_2008" "High_constr_2009"[25] "High_constr_2010" "High_constr_2011"[27] "High_constr_2012" "High_constr_2013"[29] "Low_constr_2007" "Low_constr_2008"[31] "Low_constr_2009" "Low_constr_2010"[33] "Low_constr_2011" "Low_constr_2012"[35] "Low_constr_2013" "Low_constr_2007"[37] "Low_constr_2008" "Low_constr_2009"[39] "Low_constr_2010" "Low_constr_2011"[41] "Low_constr_2012" "Low_constr_2013"[43] "past_future_2007" "past_future_2008"[45] "past_future_2009" "past_future_2010"[47] "past_future_2011" "past_future_2012"[49] "past_future_2013" "past_future_2007"[51] "past_future_2008" "past_future_2009"[53] "past_future_2010" "past_future_2011"[55] "past_future_2012" "past_future_2013"[57] "present_2007" "present_2008"[59] "present_2009" "present_2010"[61] "present_2011" "present_2012"[63] "present_2013" "present_2007"[65] "present_2008" "present_2009"[67] "present_2010" "present_2011"[69] "present_2012" "present_2013"[71] "diff_temp_2007" "diff_temp_2008"[73] "diff_temp_2009" "diff_temp_2010"[75] "diff_temp_2011" "diff_temp_2012"[77] "diff_temp_2013" "diff_temp_2007"[79] "diff_temp_2008" "diff_temp_2009"[81] "diff_temp_2010" "diff_temp_2011"[83] "diff_temp_2012" "diff_temp_2013"[85] "diff_constr_2007" "diff_constr_2008"[87] "diff_constr_2009" "diff_constr_2010"[89] "diff_constr_2011" "diff_constr_2012"[91] "diff_constr_2013" "diff_constr_2007"[93] "diff_constr_2008" "diff_constr_2009"[95] "diff_constr_2010" "diff_constr_2011"[97] "diff_constr_2012" "diff_constr_2013"[99] "i.hc" "i.lc"[101] "i.pf" "i.p"[103] "i.dt" "i.dc"[105] "s.hc" "s.lc"[107] "s.pf" "s.p"[109] "s.dt" "s.dc"[111] "CEO_2007" "Brand_2007"[113] "Size_2007" "Tier_1_2007"[115] "Acquisitions_2007" "Ind_ROA_2007"[117] "Age" "TARP"[119] "CEO_2008" "Brand_2008"[121] "Size_2008" "Tier_1_2008"[123] "Acquisitions_2008" "Ind_ROA_2008"[125] "Age" "TARP"[127] "CEO_2009" "Brand_2009"[129] "Size_2009" "Tier_1_2009"[131] "Acquisitions_2009" "Ind_ROA_2009"[133] "Age" "TARP"[135] "CEO_2010" "Brand_2010"[137] "Size_2010" "Tier_1_2010"[139] "Acquisitions_2010" "Ind_ROA_2010"[141] "Age" "TARP"[143] "CEO_2011" "Brand_2011"[145] "Size_2011" "Tier_1_2011"[147] "Acquisitions_2011" "Ind_ROA_2011"[149] "Age" "TARP"[151] "CEO_2012" "Brand_2012"[153] "Size_2012" "Tier_1_2012"[155] "Acquisitions_2012" "Ind_ROA_2012"[157] "Age" "TARP"[159] "CEO_2013" "Brand_2013"[161] "Size_2013" "Tier_1_2013"[163] "Acquisitions_2013" "Ind_ROA_2013"[165] "Age" "TARP"$mod.idx[1] 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19[20] 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38[39] 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57[58] 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76[77] 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95[96] 96 97 98 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0[115] 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0[134] 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0[153] 0 0 0 0 0 0 0 0 0 0 0 0 0 0$group[1] 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1[30] 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1[59] 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1[88] 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1[117] 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1[146] 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1$fixed[1] "1" "1" "1" "1" "1" "1" "1" "0" "1" "2" "3" "4" "5" "6"[15] "1" "1" "1" "1" "1" "1" "1" "0" "1" "2" "3" "4" "5" "6"[29] "1" "1" "1" "1" "1" "1" "1" "0" "1" "2" "3" "4" "5" "6"[43] "1" "1" "1" "1" "1" "1" "1" "0" "1" "2" "3" "4" "5" "6"[57] "1" "1" "1" "1" "1" "1" "1" "0" "1" "2" "3" "4" "5" "6"[71] "1" "1" "1" "1" "1" "1" "1" "0" "1" "2" "3" "4" "5" "6"[85] "1" "1" "1" "1" "1" "1" "1" "0" "1" "2" "3" "4" "5" "6"[99] "" "" "" "" "" "" "" "" "" "" "" "" "" ""[113] "" "" "" "" "" "" "" "" "" "" "" "" "" ""[127] "" "" "" "" "" "" "" "" "" "" "" "" "" ""[141] "" "" "" "" "" "" "" "" "" "" "" "" "" ""[155] "" "" "" "" "" "" "" "" "" "" "" ""$start[1] "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" ""[20] "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" ""[39] "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" ""[58] "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" ""[77] "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" ""[96] "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" ""[115] "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" ""[134] "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" ""[153] "" "" "" "" "" "" "" "" "" "" "" "" "" ""$label[1] "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" ""[20] "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" ""[39] "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" ""[58] "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" ""[77] "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" ""[96] "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" ""[115] "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" ""[134] "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" ""[153] "" "" "" "" "" "" "" "" "" "" "" "" "" ""attr(,"modifiers")attr(,"modifiers")[[1]]attr(,"modifiers")[[1]]$fixed[1] 1attr(,"modifiers")[[2]]attr(,"modifiers")[[2]]$fixed[1] 1attr(,"modifiers")[[3]]attr(,"modifiers")[[3]]$fixed[1] 1attr(,"modifiers")[[4]]attr(,"modifiers")[[4]]$fixed[1] 1attr(,"modifiers")[[5]]attr(,"modifiers")[[5]]$fixed[1] 1attr(,"modifiers")[[6]]attr(,"modifiers")[[6]]$fixed[1] 1attr(,"modifiers")[[7]]attr(,"modifiers")[[7]]$fixed[1] 1attr(,"modifiers")[[8]]attr(,"modifiers")[[8]]$fixed[1] 0attr(,"modifiers")[[9]]attr(,"modifiers")[[9]]$fixed[1] 1attr(,"modifiers")[[10]]attr(,"modifiers")[[10]]$fixed[1] 2attr(,"modifiers")[[11]]attr(,"modifiers")[[11]]$fixed[1] 3attr(,"modifiers")[[12]]attr(,"modifiers")[[12]]$fixed[1] 4attr(,"modifiers")[[13]]attr(,"modifiers")[[13]]$fixed[1] 5attr(,"modifiers")[[14]]attr(,"modifiers")[[14]]$fixed[1] 6attr(,"modifiers")[[15]]attr(,"modifiers")[[15]]$fixed[1] 1attr(,"modifiers")[[16]]attr(,"modifiers")[[16]]$fixed[1] 1attr(,"modifiers")[[17]]attr(,"modifiers")[[17]]$fixed[1] 1attr(,"modifiers")[[18]]attr(,"modifiers")[[18]]$fixed[1] 1attr(,"modifiers")[[19]]attr(,"modifiers")[[19]]$fixed[1] 1attr(,"modifiers")[[20]]attr(,"modifiers")[[20]]$fixed[1] 1attr(,"modifiers")[[21]]attr(,"modifiers")[[21]]$fixed[1] 1attr(,"modifiers")[[22]]attr(,"modifiers")[[22]]$fixed[1] 0attr(,"modifiers")[[23]]attr(,"modifiers")[[23]]$fixed[1] 1attr(,"modifiers")[[24]]attr(,"modifiers")[[24]]$fixed[1] 2attr(,"modifiers")[[25]]attr(,"modifiers")[[25]]$fixed[1] 3attr(,"modifiers")[[26]]attr(,"modifiers")[[26]]$fixed[1] 4attr(,"modifiers")[[27]]attr(,"modifiers")[[27]]$fixed[1] 5attr(,"modifiers")[[28]]attr(,"modifiers")[[28]]$fixed[1] 6attr(,"modifiers")[[29]]attr(,"modifiers")[[29]]$fixed[1] 1attr(,"modifiers")[[30]]attr(,"modifiers")[[30]]$fixed[1] 1attr(,"modifiers")[[31]]attr(,"modifiers")[[31]]$fixed[1] 1attr(,"modifiers")[[32]]attr(,"modifiers")[[32]]$fixed[1] 1attr(,"modifiers")[[33]]attr(,"modifiers")[[33]]$fixed[1] 1attr(,"modifiers")[[34]]attr(,"modifiers")[[34]]$fixed[1] 1attr(,"modifiers")[[35]]attr(,"modifiers")[[35]]$fixed[1] 1attr(,"modifiers")[[36]]attr(,"modifiers")[[36]]$fixed[1] 0attr(,"modifiers")[[37]]attr(,"modifiers")[[37]]$fixed[1] 1attr(,"modifiers")[[38]]attr(,"modifiers")[[38]]$fixed[1] 2attr(,"modifiers")[[39]]attr(,"modifiers")[[39]]$fixed[1] 3attr(,"modifiers")[[40]]attr(,"modifiers")[[40]]$fixed[1] 4attr(,"modifiers")[[41]]attr(,"modifiers")[[41]]$fixed[1] 5attr(,"modifiers")[[42]]attr(,"modifiers")[[42]]$fixed[1] 6attr(,"modifiers")[[43]]attr(,"modifiers")[[43]]$fixed[1] 1attr(,"modifiers")[[44]]attr(,"modifiers")[[44]]$fixed[1] 1attr(,"modifiers")[[45]]attr(,"modifiers")[[45]]$fixed[1] 1attr(,"modifiers")[[46]]attr(,"modifiers")[[46]]$fixed[1] 1attr(,"modifiers")[[47]]attr(,"modifiers")[[47]]$fixed[1] 1attr(,"modifiers")[[48]]attr(,"modifiers")[[48]]$fixed[1] 1attr(,"modifiers")[[49]]attr(,"modifiers")[[49]]$fixed[1] 1attr(,"modifiers")[[50]]attr(,"modifiers")[[50]]$fixed[1] 0attr(,"modifiers")[[51]]attr(,"modifiers")[[51]]$fixed[1] 1attr(,"modifiers")[[52]]attr(,"modifiers")[[52]]$fixed[1] 2attr(,"modifiers")[[53]]attr(,"modifiers")[[53]]$fixed[1] 3attr(,"modifiers")[[54]]attr(,"modifiers")[[54]]$fixed[1] 4attr(,"modifiers")[[55]]attr(,"modifiers")[[55]]$fixed[1] 5attr(,"modifiers")[[56]]attr(,"modifiers")[[56]]$fixed[1] 6attr(,"modifiers")[[57]]attr(,"modifiers")[[57]]$fixed[1] 1attr(,"modifiers")[[58]]attr(,"modifiers")[[58]]$fixed[1] 1attr(,"modifiers")[[59]]attr(,"modifiers")[[59]]$fixed[1] 1attr(,"modifiers")[[60]]attr(,"modifiers")[[60]]$fixed[1] 1attr(,"modifiers")[[61]]attr(,"modifiers")[[61]]$fixed[1] 1attr(,"modifiers")[[62]]attr(,"modifiers")[[62]]$fixed[1] 1attr(,"modifiers")[[63]]attr(,"modifiers")[[63]]$fixed[1] 1attr(,"modifiers")[[64]]attr(,"modifiers")[[64]]$fixed[1] 0attr(,"modifiers")[[65]]attr(,"modifiers")[[65]]$fixed[1] 1attr(,"modifiers")[[66]]attr(,"modifiers")[[66]]$fixed[1] 2attr(,"modifiers")[[67]]attr(,"modifiers")[[67]]$fixed[1] 3attr(,"modifiers")[[68]]attr(,"modifiers")[[68]]$fixed[1] 4attr(,"modifiers")[[69]]attr(,"modifiers")[[69]]$fixed[1] 5attr(,"modifiers")[[70]]attr(,"modifiers")[[70]]$fixed[1] 6attr(,"modifiers")[[71]]attr(,"modifiers")[[71]]$fixed[1] 1attr(,"modifiers")[[72]]attr(,"modifiers")[[72]]$fixed[1] 1attr(,"modifiers")[[73]]attr(,"modifiers")[[73]]$fixed[1] 1attr(,"modifiers")[[74]]attr(,"modifiers")[[74]]$fixed[1] 1attr(,"modifiers")[[75]]attr(,"modifiers")[[75]]$fixed[1] 1attr(,"modifiers")[[76]]attr(,"modifiers")[[76]]$fixed[1] 1attr(,"modifiers")[[77]]attr(,"modifiers")[[77]]$fixed[1] 1attr(,"modifiers")[[78]]attr(,"modifiers")[[78]]$fixed[1] 0attr(,"modifiers")[[79]]attr(,"modifiers")[[79]]$fixed[1] 1attr(,"modifiers")[[80]]attr(,"modifiers")[[80]]$fixed[1] 2attr(,"modifiers")[[81]]attr(,"modifiers")[[81]]$fixed[1] 3attr(,"modifiers")[[82]]attr(,"modifiers")[[82]]$fixed[1] 4attr(,"modifiers")[[83]]attr(,"modifiers")[[83]]$fixed[1] 5attr(,"modifiers")[[84]]attr(,"modifiers")[[84]]$fixed[1] 6attr(,"modifiers")[[85]]attr(,"modifiers")[[85]]$fixed[1] 1attr(,"modifiers")[[86]]attr(,"modifiers")[[86]]$fixed[1] 1attr(,"modifiers")[[87]]attr(,"modifiers")[[87]]$fixed[1] 1attr(,"modifiers")[[88]]attr(,"modifiers")[[88]]$fixed[1] 1attr(,"modifiers")[[89]]attr(,"modifiers")[[89]]$fixed[1] 1attr(,"modifiers")[[90]]attr(,"modifiers")[[90]]$fixed[1] 1attr(,"modifiers")[[91]]attr(,"modifiers")[[91]]$fixed[1] 1attr(,"modifiers")[[92]]attr(,"modifiers")[[92]]$fixed[1] 0attr(,"modifiers")[[93]]attr(,"modifiers")[[93]]$fixed[1] 1attr(,"modifiers")[[94]]attr(,"modifiers")[[94]]$fixed[1] 2attr(,"modifiers")[[95]]attr(,"modifiers")[[95]]$fixed[1] 3attr(,"modifiers")[[96]]attr(,"modifiers")[[96]]$fixed[1] 4attr(,"modifiers")[[97]]attr(,"modifiers")[[97]]$fixed[1] 5attr(,"modifiers")[[98]]attr(,"modifiers")[[98]]$fixed[1] 6attr(,"constraints")list()
"I am trying to fit a latent growth model using a longitudinal, multiple groups dataset. Basically, I have national estimates on 10+ observed HIV knowledge indicators in about 20 countries over time from 1990 to 2016 and I try to use LGM to estimate the latent value of HIV knowledge using the observed indicators for each country over time. The problem is that the longitudinal data is unbalanced, meaning that national estimates on HIV knowledge are from different years for different countries (e.g. for some countries there are estimates in 1994 but in others they have estimates in 2000) and that the number of estimates is different from different countries (e.g. some countries may have 2 estimates for the indicators over the whole period but some other countries may have 5 estimates).My question is, in this case, can I still use multiple groups LGM to fit the data and if the answer is yes, can I use lavaan to do the analysis? "