Closed yps192 closed 5 years ago
Dear yps192, I've encountered a problem like this and attempted to fix it. Could you please try the following:
library(devtools)
install_github("cjvanlissa/tidyLPA")
And then try to run your code again? Please let me know if this fixes the bug. If not - could you please share a reproducible example?
Dear C.J., thanks for your quick answer!
I'm afraid the code is not working and now not even producing any plot anymore. Instead, I get the error Error in UseMethod("droplevels") : no applicable method for 'droplevels' applied to an object of class "NULL"
As you suggested, here is a reproducible example with a sample of the data (I hope it has all the information you need). I should also mention that I am using the MplusAutomation package in case this bears any significance for the bug.
Thanks so much for your help!
library(tidyLPA)
library(MplusAutomation)
sample_tidyLPA<- structure(list(patience = c(-0.293084532022476, -0.420622199773788,
-0.548159837722778, -0.038009162992239, 1.67364168167114, 1.3070307970047,
-0.764372169971466, -0.165546864271164, -0.675697505474091, 0.855234861373901,
NA, -1.31338584423065, -0.734052240848541, -0.038009162992239,
-0.314260751008987, -0.803235232830048, 2.22097063064575, -0.548159837722778,
NA, -0.420622199773788, -0.548159837722778, -0.038009162992239,
-0.404619961977005, -0.675697505474091, 1.34938335418701, -0.420622199773788,
-0.420622199773788, -1.31338584423065, -0.420622199773788, -0.420622199773788,
-0.675697505474091, -0.56933605670929, -0.420622199773788, -0.803235232830048,
1.40256404876709, 1.87036240100861, -0.548159837722778, 0.0631783083081245,
0.323427647352219, 1.38656187057495, 0.754047393798828, -0.420622199773788,
-0.293084532022476, -0.630937159061432, -0.93077290058136, -0.038009162992239,
0.0554444268345833, 1.61528694629669, -0.165546864271164, -0.420622199773788,
-0.61697906255722, -0.675697505474091, 1.62046086788177, 1.94471919536591,
0.669722557067871, -1.31338584423065, -0.0431831553578377, 1.06230342388153,
-1.31338584423065, 1.22701954841614, 1.83835768699646, -0.675697505474091,
-0.038009162992239, -1.31338584423065, 0.536150574684143, 0.0554444268345833,
-0.293084532022476, 2.16261625289917, 1.07313168048859, -0.803235232830048,
-0.186723068356514, 2.0190761089325, -0.548159837722778, 0.60533344745636,
2.67276668548584, -0.319434702396393, -1.31338584423065, 0.33942985534668,
-0.038009162992239, 0.918763518333435, -0.497363209724426, -0.293084532022476,
-0.420622199773788, 2.4176914691925, -0.803235232830048, -0.420622199773788,
0.913589596748352, -0.293084532022476, 1.1898410320282, 0.929591834545135,
-0.293084532022476, -1.31338584423065, -0.165546864271164, 1.40773808956146,
-0.675697505474091, -0.663256406784058, -1.31338584423065, -0.548159837722778,
-0.420622199773788, -1.31338584423065, 0.700866639614105, -0.038009162992239,
1.43974256515503, 0.461793571710587, -0.675697505474091, -0.675697505474091,
-0.165546864271164, -0.293084532022476, -0.3990558385849, -0.4949791431427,
-0.93077290058136, -1.31338584423065, 1.53010165691376, -1.31338584423065,
-0.675697505474091, -0.404619961977005, -0.038009162992239, -1.31338584423065,
-0.223901554942131, 2.63558840751648, 1.99789988994598, -0.548159837722778,
0.172588959336281, -0.112366132438183, -0.038009162992239, -0.675697505474091,
-0.548159837722778, NA, 0.169539719820023, 2.12543773651123,
-1.31338584423065, -1.31338584423065, -0.0966664031147957, -0.293084532022476,
-0.548159837722778, 2.27573347091675, 0.860408782958984, -0.293084532022476,
-0.293084532022476, 0.78605192899704, -0.93077290058136, 1.40256404876709,
-0.614515662193298, 0.031173799186945, 2.25297522544861, -0.293084532022476,
-1.31338584423065, 2.26008415222168, -1.18584823608398, 0.860408782958984,
2.4176914691925, 0.318253666162491, -0.420622199773788, -0.0803616270422935,
-0.548159837722778, -1.05831050872803, -0.675697505474091, -0.803235232830048,
-0.038009162992239, -0.847948908805847, -0.420622199773788, -0.038009162992239,
-0.93077290058136, 2.12543773651123, -0.330262988805771, -0.548159837722778,
NA, -0.548159837722778, 2.25297522544861, -0.675697505474091,
2.25297522544861, 0.33942985534668, -1.18584823608398, -0.548159837722778,
-0.420622199773788, -1.31338584423065, 2.38051295280457, 1.85436010360718,
-0.420622199773788, -0.420622199773788, 2.76312589645386, -1.05831050872803,
-1.18584823608398, -0.613829016685486, 1.03595316410065, 1.06230342388153,
0.318253666162491, 0.663688182830811, -0.293084532022476, -0.613829016685486,
-0.675697505474091, -0.0958060622215271, -0.675697505474091,
-0.93077290058136, -0.165546864271164, -0.420622199773788, -0.420622199773788,
-0.038009162992239, 0.424615055322647, 1.85436010360718, -0.613829016685486,
0.0843545198440552, -0.293084532022476, -0.613829016685486, -1.16384315490723,
0.663688182830811, 2.50805068016052, -1.05831050872803, 0.0386528186500072,
1.21667170524597, -1.31338584423065, 0.169539719820023, -0.231902688741684,
-0.675697505474091, -0.293084532022476, 1.83835768699646, -0.613829016685486,
-0.038009162992239, -1.31338584423065, 2.50805068016052, -1.05831050872803,
-0.298258483409882, -0.548159837722778, 1.94471919536591, 2.03507852554321,
-0.420622199773788, -1.05831050872803, 0.22986264526844, -0.675697505474091,
-0.165546864271164, -0.420622199773788, -0.27708226442337, -0.165546864271164,
0.594505190849304, -0.038009162992239, -0.116176307201385, 1.21667170524597,
-0.420622199773788, 0.33942985534668, -0.038009162992239, -0.675697505474091,
-0.675697505474091, -1.31338584423065, -0.165546864271164, -0.548159837722778,
-0.293084532022476, -0.675697505474091, -0.750054478645325, -0.165546864271164,
-0.675697505474091, -0.675697505474091, 0.514974296092987, -0.803235232830048,
-0.293084532022476, -0.613829016685486, -0.4417984187603, -0.420622199773788,
-0.93077290058136, -0.696873784065247, 1.02512502670288, 0.807228088378906,
-0.659695267677307, 0.142709240317345, 1.32820701599121, -0.293084532022476,
-0.675697505474091, -0.293084532022476, -0.038009162992239, -0.675697505474091,
-0.420622199773788, -0.847948908805847, -0.20272533595562, NA,
-0.675697505474091, -0.675697505474091, -0.038009162992239, -0.659695267677307,
-0.675697505474091, -0.420622199773788, -1.05831050872803, -0.675697505474091,
0.594505190849304, -0.0591853894293308, 0.934765756130219, -0.643693089485168,
-0.293084532022476, 2.50805068016052, -0.038009162992239, 0.195889934897423,
-0.675697505474091, -0.038009162992239, 0.855234861373901, -0.96795129776001,
-0.675697505474091, -0.548159837722778, -0.239903792738914, -1.18584823608398,
-0.293084532022476, 0.700866639614105, 0.515305161476135, -0.93077290058136,
-0.330262988805771, -0.675697505474091, -0.675697505474091, 2.4176914691925,
0.536150574684143, -1.18584823608398, -0.675697505474091, -0.038009162992239,
-0.93077290058136, -1.18584823608398, -0.314260751008987, -0.0591853894293308,
-0.0431831553578377, -0.038009162992239, 1.62046086788177, -0.420622199773788,
-1.31338584423065, 1.83835768699646, -0.675697505474091, -0.93077290058136,
-1.22302675247192, 1.15266263484955, 1.15266263484955, 2.67276668548584,
-1.31338584423065, -0.038009162992239, -1.18584823608398, 0.174713730812073,
-0.96795129776001, 2.27415156364441, 0.259898960590363, 0.530976533889771,
-0.663256406784058, -0.293084532022476, 1.40256404876709, 0.684864461421967,
-0.334193974733353, 0.0420020557940006, 0.573329031467438, -0.038009162992239,
0.137535244226456, NA, -1.31338584423065, -0.351439237594604,
-0.590512275695801, -1.31338584423065, -0.847948908805847, -0.675697505474091,
0.105530723929405, 2.10943531990051, 1.15266263484955, -0.165546864271164,
0.334255903959274, -0.420622199773788, 2.36451077461243, -0.497363209724426,
1.85436010360718, -0.929017901420593, -0.675697505474091, -0.293084532022476,
1.94471919536591, -0.675697505474091, -0.613829016685486, -0.93077290058136,
0.594505190849304, -0.93077290058136, -0.548159837722778, 2.49204850196838,
0.669722557067871, 0.33942985534668, -0.293084532022476, -0.548159837722778,
0.679690480232239, -0.803235232830048, -1.18584823608398, -0.038009162992239,
0.142709240317345, 1.16866493225098, -0.548159837722778, 0.897587358951569,
-0.207899302244186, -0.548159837722778, 2.12543773651123, 0.828404366970062,
-0.675697505474091, -0.847948908805847, 0.211892202496529, 0.642511963844299,
1.43974256515503, -1.18584823608398, -0.680871486663818, -0.847948908805847,
-0.0966664031147957, -0.293084532022476, 0.770049691200256, -0.420622199773788,
-0.675697505474091, -0.622516810894012, -0.803235232830048),
risktaking = c(1.3304842710495, 0.13585276901722, 1.29948937892914,
0.638501226902008, -0.382293164730072, 0.297225475311279,
1.25603020191193, 2.15587830543518, 0.446133732795715, -1.87474119663239,
NA, -1.62341701984406, -1.69787108898163, 0.0273707266896963,
0.104857914149761, 0.13585276901722, 1.04816520214081, -0.366795718669891,
-1.18029189109802, -0.366795718669891, -0.115471482276917,
2.4661591053009, -1.21071994304657, -1.87474119663239, 0.340684711933136,
-0.618120014667511, 1.46086227893829, -0.115471482276917,
0.137897878885269, 0.525245845317841, -0.115471482276917,
-0.70807158946991, 0.545516669750214, 1.05119824409485, -0.130968913435936,
-1.12076842784882, 1.71218645572662, -0.130968913435936,
0.238268747925758, -0.70807158946991, 1.18157601356506, -0.67496645450592,
1.86109459400177, 1.71218645572662, 0.13585276901722, 2.4661591053009,
0.612665891647339, 2.11241888999939, 0.430636316537857, 0.796840906143188,
-0.468459367752075, -1.87474119663239, -0.618120014667511,
0.0583656318485737, 1.09999430179596, -0.366795718669891,
-0.869444251060486, -0.943898379802704, -1.8157844543457,
0.886792480945587, -0.692574083805084, -1.87474119663239,
0.387176990509033, -0.518737018108368, 0.502057433128357,
-0.0160885062068701, 0.607506394386292, 0.297225475311279,
-0.295374602079391, 1.71218645572662, 1.27152752876282, 1.55081367492676,
-0.0470832996070385, 0.163814604282379, 0.3251873254776,
1.55081367492676, -0.382293164730072, -0.115471482276917,
-0.366795718669891, 1.04816520214081, 0.294192403554916,
0.3966084420681, -0.115471482276917, 0.917787373065948, 0.0893604755401611,
0.13585276901722, 0.635468244552612, -0.618120014667511,
1.04816520214081, 1.71218645572662, -0.618120014667511, -1.87474119663239,
0.387176990509033, 0.650965690612793, 0.13585276901722, -0.67496645450592,
-1.37209272384644, -0.115471482276917, -0.456747263669968,
-0.468459367752075, 1.55081367492676, -1.52100086212158,
-0.205423027276993, 1.20953798294067, -0.618120014667511,
0.871295034885406, 0.387176990509033, 0.13585276901722, 1.11992013454437,
-0.115471482276917, -1.62341701984406, 0.0149063412100077,
-0.0565147809684277, 0.638501226902008, -0.0875096246600151,
-1.87474119663239, 0.815371334552765, -1.87474119663239,
-0.205423027276993, -0.366795718669891, -1.52100086212158,
-0.618120014667511, 1.69972205162048, 2.4661591053009, 0.356182157993317,
1.46086227893829, -0.931433916091919, 0.145036086440086,
-1.52100086212158, 0.340684711933136, -1.87474119663239,
-0.441249877214432, -0.618120014667511, 0.666463136672974,
0.474095553159714, -1.87474119663239, -0.456747263669968,
1.25603020191193, 2.03796458244324, 1.71218645572662, -1.12076842784882,
0.148317188024521, -1.12076842784882, 1.40493834018707, 1.16607856750488,
0.886792480945587, -1.37209272384644, 0.928601384162903,
-0.366795718669891, -0.0469993837177753, -0.399623572826385,
-1.33671498298645, 0.356182157993317, 1.71218645572662, -1.52100086212158,
-1.63891446590424, -0.869444251060486, -1.12076842784882,
0.638501226902008, -1.46075403690338, 1.46086227893829, 2.05346202850342,
-0.810487568378448, -0.0875096246600151, 0.874257385730743,
-0.205423027276993, -0.0469993837177753, 0.638501226902008,
-0.869444251060486, 0.70992237329483, 0.204240947961807,
0.312722861766815, -1.00285506248474, 2.21483492851257, -0.0875096246600151,
0.13585276901722, -0.115471482276917, 0.784376502037048,
2.05346202850342, -0.115471482276917, 1.20953798294067, -1.12076842784882,
1.46086227893829, -0.67496645450592, -1.46204423904419, 0.148317188024521,
-0.441249877214432, 0.548549711704254, -1.87474119663239,
1.13811671733856, 0.294192403554916, 0.415138870477676, -0.331875920295715,
-0.00611187424510717, 1.96351063251495, 0.768879055976868,
-0.510689735412598, -0.0720121935009956, 0.0613986253738403,
1.03266775608063, NA, 1.25603020191193, 0.13585276901722,
-0.67496645450592, -0.115471482276917, -0.618120014667511,
1.96351063251495, 0.502057433128357, 2.03796458244324, -0.618120014667511,
0.737884283065796, -0.531201422214508, -0.251915335655212,
0.266230583190918, -0.115471482276917, -1.01835250854492,
-1.87474119663239, 0.194809466600418, 0.13585276901722, 1.24053275585175,
-0.146466329693794, -1.08520221710205, 0.815371334552765,
1.55081367492676, 0.2227713316679, 0.387176990509033, 0.38414403796196,
1.31498682498932, -0.236417904496193, -1.87474119663239,
-1.87474119663239, -0.798023104667664, 0.371679574251175,
0.415138870477676, 0.638501226902008, -0.331875920295715,
-0.330660402774811, -0.366795718669891, 0.650965690612793,
-0.248882338404655, 1.03266775608063, -0.869444251060486,
-1.5882271528244, 0.0893604755401611, -0.500206589698792,
-1.69787108898163, -0.618120014667511, 0.3251873254776, 1.96351063251495,
1.46086227893829, -0.0469993837177753, 0.401116609573364,
-1.25417935848236, 0.576511561870575, -0.468459367752075,
1.09162449836731, -0.869444251060486, -1.12076842784882,
0.489592999219894, 1.20354855060577, -0.115471482276917,
-0.189925625920296, 2.21483492851257, 1.00470590591431, -0.692574083805084,
-1.12076842784882, 1.55081367492676, 2.4661591053009, -1.37209272384644,
2.21483492851257, -0.0470832996070385, -0.869444251060486,
-1.87474119663239, 0.0459012091159821, -0.618120014667511,
-0.559163272380829, 0.0613986253738403, 0.706889390945435,
-0.366795718669891, -0.70807158946991, 0.266230583190918,
1.58180844783783, -0.366795718669891, 0.768879055976868,
-0.615777492523193, -0.456747263669968, -0.115471482276917,
1.46086227893829, -0.0875096246600151, 2.21483492851257,
0.638501226902008, -1.87474119663239, 1.52285182476044, -1.12076842784882,
0.176278993487358, 0.768879055976868, -0.869444251060486,
1.02020335197449, -0.456747263669968, -0.0469993837177753,
-0.869444251060486, -1.06181180477142, -1.12076842784882,
-0.943898379802704, 1.24053275585175, 0.635468244552612,
-1.37209272384644, -0.399623572826385, 2.4661591053009, -0.236417904496193,
-1.26967668533325, -0.943898379802704, -0.205423027276993,
-1.07730913162231, -0.223953515291214, -0.95939576625824,
1.71218645572662, 0.13585276901722, 0.799873948097229, 0.253766149282455,
1.38792455196381, 0.399641424417496, NA, 0.0738630592823029,
-0.264379739761353, -0.91118198633194, 1.99450540542603,
-0.615777492523193, 0.694424986839294, 1.05119824409485,
0.399641424417496, 0.204240947961807, 0.238268747925758,
0.678927481174469, 0.13585276901722, 0.678927481174469, 0.0893604755401611,
-1.46075403690338, -1.69787108898163, 0.96124666929245, 0.0304037798196077,
0.96938019990921, NA, 0.638501226902008, 0.399641424417496,
-0.161963775753975, 0.638501226902008, -0.0469993837177753,
-0.664612233638763, -0.044050358235836, 1.29948937892914,
-1.12076842784882, -1.37209272384644, 0.118838831782341,
1.05119824409485, 1.20953798294067, -0.0791452378034592,
0.281728029251099, -0.330660402774811, -0.692574083805084,
0.148317188024521, 1.46389508247375, 0.489592999219894, -1.46075403690338,
-1.31313598155975, -0.264379739761353, -1.136265873909, -0.161963775753975,
1.46086227893829, 1.38797092437744, -0.95939576625824, 2.21483492851257,
0.13585276901722, -0.0875096246600151, 0.0738630592823029,
-1.18029189109802, 0.238268747925758, -0.70807158946991,
-0.366795718669891, -0.189925625920296, 0.0459012091159821,
0.3251873254776, -1.12076842784882, -1.12076842784882, -0.177461177110672,
0.238746628165245, -0.0469993837177753, 0.548549711704254,
0.706889390945435, 0.533052265644073, -1.2717604637146, -0.193116337060928,
-1.46075403690338, -0.331875920295715, 0.13585276901722,
-0.189925625920296, -1.2717604637146, -0.366795718669891,
1.20953798294067, 1.71218645572662), posrecip = c(-0.434286952018738,
-1.02960109710693, -0.366437017917633, -0.162887096405029,
-0.73194408416748, -0.298587083816528, 0.959891140460968,
1.02774119377136, -0.00092999468324706, 0.432426989078522,
-0.867644071578979, -2.01667952537537, -0.805481433868408,
1.32539820671082, -1.25940811634064, 0.594384133815765, 0.228877082467079,
0.73008406162262, 0.594317018985748, 0.228877082467079, -1.16530108451843,
0.594384133815765, -3.11320066452026, -1.46295821666718,
-0.799794018268585, -1.02960109710693, -0.664094150066376,
-0.73194408416748, 0.432426989078522, 1.32539820671082, 1.32539820671082,
-0.867644071578979, 0.228877082467079, 1.32539820671082,
0.73008406162262, 1.32539820671082, -0.162887096405029, -0.136629939079285,
-0.502136945724487, -0.136629939079285, -0.73194408416748,
-0.162887096405029, 1.32539820671082, -1.19155824184418,
-0.136629939079285, 0.594384133815765, -0.805481433868408,
0.959891140460968, 0.73008406162262, -0.298587083816528,
-0.75820118188858, 0.959891140460968, 0.594384133815765,
-0.00092999468324706, 1.32539820671082, -0.366437017917633,
-0.961751163005829, -0.867644071578979, -1.02960109710693,
0.959891140460968, 0.296727061271667, 0.73008406162262, -0.136629939079285,
0.228877082467079, 0.662234127521515, 0.228877082467079,
-0.73194408416748, 0.73008406162262, -0.136629939079285,
0.594384133815765, 0.959891140460968, -1.46295821666718,
1.32539820671082, 0.228877082467079, 1.32539820671082, -0.00092999468324706,
-0.893901109695435, -1.46295821666718, 1.32539820671082,
1.32539820671082, -0.0687799602746964, 1.32539820671082,
0.432426989078522, 1.32539820671082, -0.502136945724487,
-1.09745109081268, -0.596244096755981, 0.662234127521515,
-1.02960109710693, -0.162887096405029, -1.46295821666718,
0.594384133815765, 0.662234127521515, 1.02774119377136, 0.594384133815765,
0.296727061271667, -0.867644071578979, -0.596244096755981,
-1.32725811004639, -2.05827212333679, 1.32539820671082, 1.32539820671082,
1.02774119377136, -1.85472238063812, -1.25940811634064, 0.959891140460968,
1.32539820671082, 0.73008406162262, -1.62491524219513, 0.662234127521515,
-2.6535861492157, 0.959891140460968, -0.0687799602746964,
1.32539820671082, -0.136629939079285, 1.32539820671082, 0.228877082467079,
-0.434286952018738, 0.364577025175095, 1.02774119377136,
0.959891140460968, -1.32725811004639, 0.959891140460968,
0.364577025175095, 0.959891140460968, -2.22022938728333,
1.32539820671082, 0.432426989078522, -0.00092999468324706,
0.73008406162262, -1.25940811634064, -0.00092999468324706,
-0.867644071578979, 0.73008406162262, 0.73008406162262, 1.32539820671082,
-0.00092999468324706, -0.455531775951385, 1.32539820671082,
0.959891140460968, 0.228877082467079, -1.76061522960663,
-0.460544139146805, -0.00092999468324706, -0.961751163005829,
0.228877082467079, 0.228877082467079, 0.296727061271667,
-0.502136945724487, 0.662234127521515, -0.502136945724487,
-0.298587083816528, 0.432426989078522, 0.228877082467079,
-1.99042224884033, 0.432426989078522, 0.594317018985748,
-0.893901109695435, 1.32539820671082, 0.594317018985748,
1.32539820671082, -0.162887096405029, 1.32539820671082, -0.00092999468324706,
0.594384133815765, -2.22022938728333, 0.103693775832653,
0.296727061271667, 1.02774119377136, -0.105582214891911,
0.594384133815765, -1.46295821666718, -0.867644071578979,
-2.28807926177979, -0.664094150066376, 1.32539820671082,
-1.76061522960663, 0.228877082467079, 1.02774119377136, 0.0669199526309967,
0.432426989078522, 0.0669199526309967, -1.92257225513458,
-1.35351526737213, 0.594384133815765, 0.364577025175095,
0.594384133815765, -1.48921537399292, 1.02774119377136, 0.524114489555359,
0.73008406162262, 0.364577025175095, -0.502136945724487,
-2.6535861492157, 0.662234127521515, 0.594317018985748, 0.228877082467079,
1.32539820671082, -0.893901109695435, 1.32539820671082, -0.502136945724487,
-0.434286952018738, 1.02774119377136, 0.662234127521515,
0.594384133815765, 1.32539820671082, -0.664094150066376,
0.959891140460968, -1.39510822296143, -0.460544139146805,
0.594317018985748, -0.298587083816528, -0.00092999468324706,
0.594384133815765, -0.867644071578979, 0.244367495179176,
0.296727061271667, 0.594384133815765, -1.09745109081268,
0.228877082467079, 0.296727061271667, -0.455531775951385,
0.364577025175095, 0.364577025175095, 0.73008406162262, -0.298587083816528,
-1.85472238063812, 0.364577025175095, -1.92257225513458,
1.32539820671082, 0.594384133815765, -0.298587083816528,
0.228877082467079, 0.959891140460968, 1.32539820671082, -3.18105053901672,
0.594384133815765, -1.09745109081268, 0.959891140460968,
1.32539820671082, 1.02774119377136, 0.296727061271667, 1.02774119377136,
0.296727061271667, 0.134769961237907, -0.867644071578979,
-0.73194408416748, -1.39510822296143, -1.09745109081268,
-0.664094150066376, -0.502136945724487, -1.02960109710693,
-0.00092999468324706, -0.73194408416748, NA, -0.893901109695435,
-0.0687799602746964, -1.62491524219513, 0.594384133815765,
-0.664094150066376, 0.432426989078522, -0.298587083816528,
0.662234127521515, 0.73008406162262, 0.662234127521515, -0.136629939079285,
-0.799794018268585, 1.32539820671082, 0.0669199526309967,
-0.00092999468324706, -1.69276523590088, -0.00092999468324706,
1.32539820671082, 0.594384133815765, 0.73008406162262, 1.32539820671082,
0.73008406162262, -1.99042224884033, 0.364577025175095, 1.32539820671082,
-0.867644071578979, 0.959891140460968, -0.366437017917633,
-0.366437017917633, -0.00092999468324706, 0.959891140460968,
1.32539820671082, 1.32539820671082, -1.16530108451843, 0.296727061271667,
-0.136629939079285, 0.228877082467079, 1.32539820671082,
-0.298587083816528, -0.664094150066376, 0.432426989078522,
-0.298587083816528, -0.596244096755981, -0.0687799602746964,
-0.434286952018738, -0.00092999468324706, 0.364577025175095,
0.594317018985748, -0.434286952018738, 1.32539820671082,
0.73008406162262, -0.799794018268585, 0.73008406162262, 0.959891140460968,
-1.39510822296143, -1.02960109710693, 1.32539820671082, 0.228877082467079,
-0.867644071578979, -0.136629939079285, -0.596244096755981,
-0.434286952018738, -0.136629939079285, 0.228877082467079,
-1.09745109081268, 0.662234127521515, -0.00092999468324706,
-0.73194408416748, -0.298587083816528, 0.594317018985748,
-0.867644071578979, -0.502136945724487, -0.867644071578979,
0.594384133815765, 1.32539820671082, 0.959891140460968, -1.46295821666718,
0.959891140460968, 0.228877082467079, -1.02960109710693,
-1.09745109081268, 0.959891140460968, -0.502136945724487,
-1.99042224884033, -0.00092999468324706, 0.594384133815765,
-0.00092999468324706, -0.867644071578979, 0.594384133815765,
-0.73194408416748, -1.92257225513458, 0.594384133815765,
0.296727061271667, -0.00092999468324706, 1.32539820671082,
0.228877082467079, 1.02774119377136, -0.867644071578979,
-1.16530108451843, 0.959891140460968, 1.02774119377136, 0.594317018985748,
-0.73194408416748, -0.434286952018738, 0.959891140460968,
-1.76061522960663, -0.73194408416748, 0.594317018985748,
0.594317018985748, -0.230737075209618, 0.959891140460968,
0.594384133815765, 0.296727061271667, 0.594384133815765,
-0.867644071578979, -0.893901109695435, -0.502136945724487,
0.73008406162262, 0.594384133815765, -0.961751163005829,
-0.162887096405029, -0.136629939079285, -0.136629939079285,
-0.105582214891911, -0.73194408416748, -2.08452939987183,
-0.73194408416748, -1.69276523590088, 0.594384133815765,
0.959891140460968, -0.366437017917633, -0.105582214891911,
-0.298587083816528, 0.296727061271667, -0.230737075209618,
1.02774119377136, -0.502136945724487, -0.867644071578979,
-2.6535861492157, 0.228877082467079, 0.594384133815765, 0.73008406162262,
0.432426989078522, 0.134769961237907, 0.134769961237907),
negrecip = c(0.765308678150177, 0.913676738739014, 0.913676738739014,
-1.58645987510681, 0.643493175506592, 0.913902699947357,
0.713333249092102, -1.19446074962616, 0.817961931228638,
-1.58645987510681, 1.11000967025757, -0.105038687586784,
-0.358035355806351, 0.129452675580978, 0.696146368980408,
0.817735970020294, -1.58645987510681, -0.85488897562027,
NA, 1.15753364562988, 0.156005159020424, 2.33353090286255,
-0.732169806957245, 1.00939154624939, 0.887801945209503,
0.399862110614777, 1.03571820259094, -0.697607159614563,
-1.58645987510681, -0.924503087997437, -0.531826376914978,
-0.19293224811554, -1.34237706661224, -1.09919774532318,
0.738982141017914, -1.04654455184937, -0.802461683750153,
1.34918928146362, -1.58645987510681, -0.0708908140659332,
-0.532504081726074, 0.809274017810822, 0.521677672863007,
0.539316356182098, -0.114178381860256, 0.399862110614777,
1.15753364562988, 0.13881827890873, 1.74096250534058, 1.48037040233612,
0.486663192510605, -1.58645987510681, -1.58645987510681,
0.442697882652283, 0.852109789848328, 0.538638651371002,
0.617166578769684, 0.416823089122772, -1.04609274864197,
1.4274914264679, 0.347434848546982, -0.410462617874146, 1.45336616039276,
-1.58645987510681, NA, -0.924728989601135, 0.0772513002157211,
0.399862110614777, 2.08944821357727, 1.72332370281219, -1.58645987510681,
0.617392539978027, 1.42771732807159, 0.469476282596588, -0.488990604877472,
1.25302267074585, 0.373535543680191, 1.00961744785309, -1.58645987510681,
-0.314747780561447, 1.25324857234955, -0.610580205917358,
-0.58425360918045, -0.122414477169514, 0.660680115222931,
-1.34260296821594, 0.224941596388817, 1.27934920787811, -0.898402452468872,
-0.21858112514019, NA, -1.58645987510681, -1.34260296821594,
-0.532729923725128, 0.870163261890411, NA, -1.58645987510681,
-0.166605666279793, -0.288421183824539, -1.29017555713654,
-0.488764673471451, -1.58645987510681, 0.861249446868896,
0.521451771259308, -0.0708908140659332, 0.129678577184677,
1.15753364562988, 1.54953277111053, -0.288647085428238, 0.268680959939957,
-0.85488897562027, -1.34260296821594, -1.19423484802246,
-0.105038687586784, -1.34260296821594, -0.26232048869133,
-1.58645987510681, -0.733073472976685, 0.373535543680191,
-1.14203357696533, -0.157465904951096, -0.680420279502869,
1.08769369125366, 1.67157423496246, -0.0445642322301865,
0.103577889502048, 0.5228071808815, NA, -0.0184635445475578,
-0.26232048869133, 0.251720011234283, -1.58645987510681,
NA, 2.18538880348206, -0.976252675056458, -1.58645987510681,
-0.114178381860256, 1.7933896780014, -0.341752052307129,
-1.58645987510681, 0.739433944225311, 0.861249446868896,
-1.19446074962616, 0.173417970538139, 0.765534639358521,
0.443149715662003, -1.58645987510681, -0.976930379867554,
-1.34260296821594, 0.590840041637421, -1.07264518737793,
0.373535543680191, 1.22714781761169, 1.03571820259094, -0.367175072431564,
-0.0182376392185688, -0.653867781162262, 0.103577889502048,
-1.19446074962616, -1.58645987510681, -0.977382242679596,
-1.58645987510681, 0.3643958568573, 0.861249446868896, 0.50949901342392,
-0.166379764676094, NA, -0.340848445892334, 1.40139067173004,
1.10510647296906, -1.19446074962616, 0.817961931228638, -0.357809454202652,
-0.0445642322301865, -0.9767045378685, -1.58645987510681,
1.27934920787811, -1.04631865024567, -0.488086998462677,
-0.776135146617889, 1.6450217962265, 1.60128223896027, -0.610806107521057,
-1.58645987510681, 1.11424612998962, 0.103803791105747, -1.22033560276031,
1.10510647296906, 0.739207983016968, 0.945739567279816, 2.08944821357727,
0.88757598400116, -0.166605666279793, -0.558830678462982,
0.495125144720078, -0.680646181106567, -1.58645987510681,
0.443375587463379, 1.18340849876404, -0.367175072431564,
-1.58645987510681, -0.19270633161068, -0.0969915017485619,
NA, 1.15753364562988, -0.219032928347588, -0.0184635445475578,
1.34896337985992, NA, -1.22078728675842, 0.852109789848328,
0.669819831848145, 0.643493175506592, -0.245133623480797,
-0.192254558205605, -0.0708908140659332, 0.225393429398537,
-0.85488897562027, -0.157691836357117, -0.977382242679596,
-1.04631865024567, 0.199066832661629, 1.69767498970032, 0.399862110614777,
0.443601489067078, 1.30544996261597, 0.495351076126099, 1.4270396232605,
-0.410462617874146, -1.58645987510681, 0.364621728658676,
-1.34260296821594, 1.42771732807159, 0.574330866336823, 0.373535543680191,
0.130130380392075, 0.278272479772568, 0.956964313983917,
2.08967399597168, -0.845749258995056, 0.199744537472725,
-0.828788280487061, -1.31627631187439, 1.42771732807159,
-0.114178381860256, -0.105038687586784, 0.0863910242915154,
0.521677672863007, 1.52343213558197, 0.818187832832336, 0.687006652355194,
0.521677672863007, -0.122866272926331, -0.558604717254639,
NA, -0.357583522796631, -0.706746816635132, -0.235993921756744,
0.443375587463379, 1.15753364562988, -0.776360988616943,
-1.43831777572632, 0.548681974411011, 1.4274914264679, -0.436337411403656,
-1.19446074962616, 0.521677672863007, -1.58645987510681,
1.42771732807159, 0.129678577184677, -1.58645987510681, 0.426414638757706,
-1.58645987510681, 0.469476282596588, 0.713107287883759,
NA, -0.558604717254639, 0.643493175506592, 0.00763714639469981,
-1.58645987510681, 2.33353090286255, 1.94153189659119, -0.410462617874146,
0.643493175506592, -0.584705412387848, 1.30590164661407,
-0.235542103648186, -0.368078649044037, 0.356122821569443,
1.84581708908081, -1.58645987510681, -1.34237706661224, 1.29653608798981,
NA, 0.78272145986557, 0.564965188503265, -1.43831777572632,
0.373535543680191, -0.436111509799957, 0.225393429398537,
0.103577889502048, 1.81971633434296, -1.58645987510681, -0.436563313007355,
1.49733138084412, -0.0447901301085949, -1.34260296821594,
-1.43831777572632, -0.854437232017517, -1.19446074962616,
-1.19446074962616, 1.10510647296906, 0.373535543680191, 0.120538860559464,
0.373535543680191, -0.314521878957748, 1.18408620357513,
0.129678577184677, 0.147091388702393, -0.9767045378685, 1.25324857234955,
0.374665081501007, -1.19446074962616, 0.957190155982971,
0.0772513002157211, 1.84581708908081, 0.505168497562408,
-0.0093237841501832, 1.7933896780014, -0.0969915017485619,
-0.314747780561447, -0.41001084446907, -0.383910149335861,
-1.19423484802246, -1.19446074962616, 1.69722318649292, -1.34260296821594,
2.33353090286255, -0.976252675056458, 0.687006652355194,
NA, -1.19446074962616, NA, -1.58645987510681, -0.680420279502869,
-1.04609274864197, 2.33353090286255, -1.58645987510681, 0.251945912837982,
0.347660750150681, -0.679968416690826, 1.94153189659119,
-0.437240988016129, -0.802687525749207, 1.40139067173004,
-0.802461683750153, 0.00718535855412483, -0.532504081726074,
0.0509247146546841, 0.268680959939957, -1.46464443206787,
-1.09874594211578, 0.861249446868896, -1.43831777572632,
-0.0885295048356056, 0.373535543680191, -1.58645987510681,
-0.19293224811554, -1.22033560276031, 2.33353090286255, 1.00939154624939,
0.913224995136261, 0.0772513002157211, 0.173192054033279,
0.373535543680191, -1.19446074962616, -0.462663978338242,
1.33155059814453, 1.00939154624939, -0.166605666279793, 0.251494109630585,
0.521677672863007, -1.31650221347809, -1.58645987510681,
-0.140504971146584, -0.802461683750153, -1.58645987510681,
1.06136703491211, -0.0708908140659332, 1.22692203521729,
0.347208946943283, -1.58645987510681, -1.58645987510681,
0.129678577184677, -1.09874594211578, -0.532955884933472,
1.45381796360016, 0.521451771259308, 0.373535543680191, -0.314747780561447
), altruism = c(-0.225839748978615, -0.459346920251846, -0.393052697181702,
-0.272541165351868, -0.887175679206848, -1.0739814043045,
-0.105328246951103, 0.777973413467407, 0.159313201904297,
0.179441466927528, 0.155287578701973, -0.148004025220871,
-0.296881079673767, 0.524873435497284, -1.03662025928497,
1.39663350582123, 1.39663350582123, 0.47468176484108, 1.03734016418457,
0.649410545825958, 0.241174593567848, -0.143978357315063,
-2.14355325698853, -2.29821276664734, -0.633231461048126,
0.00766741577535868, -1.30832767486572, -0.7141352891922,
-0.820881426334381, 0.696112036705017, -0.139952719211578,
0.0366742089390755, 0.929619193077087, 0.742813467979431,
1.08931624889374, -0.742510259151459, -0.924536824226379,
0.462604820728302, 1.27987992763519, -2.30325031280518, -0.126084461808205,
-0.299649834632874, 0.167364507913589, -0.148004025220871,
-1.9959329366684, 0.109498344361782, 1.72129321098328, 0.729470193386078,
-1.05530083179474, 0.622301936149597, 1.10139322280884, 0.696112036705017,
1.39663350582123, 0.159313201904297, 1.70797634124756, 1.09334194660187,
0.794075906276703, 0.155287578701973, -0.0352761149406433,
0.665245413780212, 0.159313201904297, 0.47468176484108, 0.124421000480652,
1.39663350582123, -0.219690948724747, 0.0595579221844673,
0.128178924322128, -0.299649834632874, 0.836216330528259,
-1.68861591815948, -0.139952719211578, -1.53917133808136,
-0.325914263725281, -1.9959329366684, 0.462604820728302,
0.155287578701973, -1.0739814043045, -0.766664147377014,
1.39663350582123, 0.314984649419785, 0.0347760543227196,
0.781998932361603, -0.139952719211578, -0.139952719211578,
0.579358398914337, 0.181551992893219, 0.0347760543227196,
-0.0897611081600189, -0.225839748978615, 1.86364781856537,
0.00364176998846233, -0.700369894504547, 1.55633056163788,
0.696112036705017, 2.3306622505188, -0.549658298492432, -1.68861591815948,
0.0366742089390755, -1.39673185348511, -2.61056756973267,
0.649410545825958, -1.0739814043045, 0.201988995075226, -1.29957115650177,
-0.139952719211578, 0.388794720172882, 1.08931624889374,
0.622301936149597, -0.840474188327789, 0.0366742089390755,
-0.963991701602936, 0.773947775363922, 0.310959011316299,
1.40712821483612, 0.462604820728302, 0.773947775363922, -0.606967031955719,
-1.98788177967072, -1.0739814043045, -1.37324726581573, 0.777973413467407,
-0.762638449668884, -0.148004025220871, -0.148004025220871,
0.742813467979431, -1.36183965206146, 0.836216330528259,
-0.219690948724747, -0.143978357315063, -0.533156991004944,
-2.26030683517456, -0.354399889707565, 0.556007742881775,
-1.22562718391418, -1.0739814043045, 0.462604820728302, -0.499798834323883,
1.40871036052704, 0.342093288898468, -0.579858422279358,
-2.27522945404053, 0.548491835594177, -1.14779150485992,
-0.225839748978615, 0.781998932361603, 0.388794720172882,
1.12976825237274, -0.455321282148361, -1.38129866123199,
-0.225839748978615, 1.08931624889374, -1.68861591815948,
1.08931624889374, 0.649410545825958, -0.840474188327789,
0.314984649419785, 0.781998932361603, -0.455321282148361,
0.466630458831787, 1.03734016418457, 2.3306622505188, 0.167364507913589,
1.39663350582123, -0.272541165351868, 1.08931624889374, -0.148004025220871,
-0.0255925375968218, -1.23185408115387, 0.272041141986847,
-0.05862682685256, 2.01931929588318, -0.148004025220871,
-1.0739814043045, -0.440666377544403, 1.6301406621933, 0.996335506439209,
-1.38129866123199, 0.342093288898468, 2.02334499359131, 0.163338884711266,
0.470656096935272, 0.618276298046112, -1.29943716526031,
1.16312634944916, -0.148004025220871, -1.0739814043045, 0.696112036705017,
0.827788233757019, 0.548491835594177, 1.11266696453094, 2.01931929588318,
-1.30346286296844, -1.68861591815948, -1.38129866123199,
-0.143978357315063, 1.03734016418457, 0.524873435497284,
0.929619193077087, -0.377485573291779, -0.762638449668884,
0.929619193077087, 0.310959011316299, 0.622301936149597,
-0.533156991004944, 0.618276298046112, 0.081477478146553,
0.00766741577535868, 1.39663350582123, -0.569068193435669,
-2.29821276664734, 0.929619193077087, 0.221581786870956,
0.241174593567848, 0.167364507913589, 0.314984649419785,
-0.499798834323883, 0.0366742089390755, 0.618276298046112,
0.388794720172882, 2.3306622505188, 1.12976825237274, -1.0739814043045,
1.09334194660187, -0.447269946336746, 1.39663350582123, -0.085735447704792,
-1.43954145908356, -1.0739814043045, -0.455321282148361,
-2.29922461509705, 1.39663350582123, -0.225839748978615,
-0.766664147377014, 0.181551992893219, 0.556007742881775,
0.272041141986847, -0.272541165351868, -0.766664147377014,
0.462604820728302, 0.796186506748199, -0.139952719211578,
-1.84026169776917, -0.428212642669678, 0.128178924322128,
-0.914284348487854, 0.696112036705017, -1.00213301181793,
-0.762638449668884, -0.152029678225517, -0.362052261829376,
0.159957721829414, -0.192481577396393, 0.781998932361603,
0.272041141986847, NA, 0.00364176998846233, -1.53294444084167,
-1.28789567947388, 0.381701022386551, -0.610992670059204,
-0.610992670059204, -0.914284348487854, 1.6301406621933,
0.0347760543227196, 0.167364507913589, 0.996335506439209,
-0.225839748978615, -0.299649834632874, 0.00766741577535868,
-1.31500434875488, -0.742510259151459, 0.314984649419785,
-2.37706017494202, 0.248268321156502, 0.314984649419785,
0.696112036705017, 0.781998932361603, -0.754587233066559,
-1.50181007385254, -0.381511211395264, 1.39663350582123,
0.715704739093781, -0.148004025220871, 0.256607860326767,
-0.887175679206848, 1.40871036052704, 1.2632007598877, 1.58343923091888,
-2.28456974029541, 0.462604820728302, 0.649410545825958,
0.223280638456345, 0.649410545825958, -0.17913830280304,
0.466630458831787, 1.40871036052704, -1.94923162460327, 0.47468176484108,
0.47468176484108, -0.741756737232208, -0.758612811565399,
-0.533156991004944, -0.129458010196686, -0.139952719211578,
0.462604820728302, 0.00766741577535868, -0.433082491159439,
0.578462779521942, 1.06038320064545, -0.139952719211578,
-0.700369894504547, 0.0347760543227196, -0.152029678225517,
0.462604820728302, 0.722057223320007, -0.459346920251846,
0.370229542255402, -0.914284348487854, 0.462604820728302,
-0.914284348487854, 1.08931624889374, 0.729470193386078,
-0.673261344432831, -0.840474188327789, 0.462604820728302,
-1.0739814043045, 0.871242344379425, 1.39663350582123, 0.902510523796082,
0.649410545825958, -0.259197920560837, -0.139952719211578,
0.729470193386078, 0.230009868741035, -0.303675472736359,
-2.61056756973267, 0.649410545825958, 2.3306622505188, -0.139952719211578,
1.09334194660187, 1.03734016418457, -1.50181007385254, -0.569068193435669,
1.39663350582123, -1.9600088596344, -2.30325031280518, 1.09228706359863,
0.0347760543227196, -0.754587233066559, 2.3306622505188,
1.39663350582123, 1.08931624889374, -1.9959329366684, -1.0739814043045,
1.08931624889374, 0.470656096935272, NA, -1.11443328857422,
0.0366742089390755, 0.470656096935272, -2.57164978981018,
0.081477478146553, -0.272541165351868, 0.929619193077087,
-1.29865884780884, -0.723720669746399, 0.696112036705017,
1.08931624889374, 1.6301406621933, 1.03734016418457, -0.365944057703018,
-0.148004025220871, 1.6301406621933, -0.533156991004944,
-0.735529899597168, 2.3306622505188, -0.713291168212891,
0.370229542255402, 0.703784823417664, 0.109498344361782,
0.0366742089390755, -0.309902340173721, -0.7199627161026,
0.929619193077087, 0.855809032917023, 0.781998932361603,
1.03734016418457, -0.459346920251846, 0.0935544297099113,
-0.610992670059204, 0.968804776668549, -2.22138905525208,
-0.742510259151459, -0.963991701602936, 0.777973413467407,
-0.0959879830479622, 0.272041141986847, -1.50181007385254,
-0.564023554325104, 0.0506109073758125), trust = c(0.585773646831512,
0.585773646831512, 0.585773646831512, -1.96684753894806,
0.221113488078117, 1.31509399414062, -1.60218739509583, 0.221113488078117,
-0.143546685576439, 1.67975413799286, NA, -1.96684753894806,
-0.872867047786713, 1.67975413799286, 0.950433790683746,
0.585773646831512, -1.96684753894806, -0.508206844329834,
0.950433790683746, 0.585773646831512, -0.143546685576439,
-0.143546685576439, 1.67975413799286, 0.221113488078117,
-0.508206844329834, 0.221113488078117, -0.143546685576439,
1.31509399414062, 0.585773646831512, -0.143546685576439,
0.585773646831512, 0.950433790683746, -1.96684753894806,
0.221113488078117, 0.585773646831512, 1.31509399414062, 0.221113488078117,
-0.508206844329834, -0.143546685576439, 0.585773646831512,
0.221113488078117, -0.508206844329834, -0.143546685576439,
-0.143546685576439, -1.60218739509583, 0.585773646831512,
0.221113488078117, -1.60218739509583, 0.585773646831512,
0.221113488078117, 0.950433790683746, -0.143546685576439,
-1.96684753894806, -0.143546685576439, -0.143546685576439,
-0.872867047786713, -0.143546685576439, -0.143546685576439,
-0.143546685576439, 0.585773646831512, 0.585773646831512,
0.585773646831512, -0.143546685576439, 1.67975413799286,
-0.508206844329834, -0.508206844329834, -0.143546685576439,
0.950433790683746, 1.67975413799286, -1.96684753894806, NA,
-1.60218739509583, -0.508206844329834, 0.221113488078117,
0.221113488078117, 0.585773646831512, -1.23752725124359,
0.221113488078117, -0.143546685576439, -1.23752725124359,
-1.60218739509583, 0.950433790683746, -0.508206844329834,
-0.143546685576439, 0.950433790683746, 0.950433790683746,
-0.143546685576439, 0.221113488078117, -0.508206844329834,
1.67975413799286, 0.585773646831512, -0.143546685576439,
1.31509399414062, -1.96684753894806, -1.96684753894806, 1.31509399414062,
-0.143546685576439, -0.872867047786713, -0.508206844329834,
-1.23752725124359, 0.950433790683746, -1.96684753894806,
0.950433790683746, -0.508206844329834, -0.143546685576439,
1.67975413799286, -0.508206844329834, 0.950433790683746,
-0.143546685576439, -0.508206844329834, 0.221113488078117,
-0.872867047786713, 0.950433790683746, 1.31509399414062,
-0.143546685576439, 1.67975413799286, -0.143546685576439,
0.221113488078117, -1.96684753894806, 0.221113488078117,
0.950433790683746, -0.872867047786713, -0.872867047786713,
1.31509399414062, 0.221113488078117, -0.872867047786713,
1.67975413799286, -0.143546685576439, 0.585773646831512,
-0.872867047786713, 0.585773646831512, -0.143546685576439,
-1.23752725124359, -1.23752725124359, 0.221113488078117,
1.67975413799286, 0.221113488078117, 0.221113488078117, 0.950433790683746,
1.31509399414062, -0.143546685576439, -0.872867047786713,
-0.508206844329834, -0.143546685576439, 0.221113488078117,
0.221113488078117, 1.67975413799286, -1.96684753894806, 1.31509399414062,
-0.143546685576439, -0.143546685576439, 0.221113488078117,
0.585773646831512, -0.143546685576439, 0.221113488078117,
1.31509399414062, -1.23752725124359, -0.143546685576439,
0.585773646831512, 1.31509399414062, 0.585773646831512, -1.96684753894806,
0.585773646831512, 0.950433790683746, -0.143546685576439,
0.585773646831512, NA, -0.508206844329834, -1.23752725124359,
-0.143546685576439, -1.60218739509583, -0.143546685576439,
-0.508206844329834, -0.872867047786713, -0.872867047786713,
-1.96684753894806, -0.508206844329834, 0.950433790683746,
-1.96684753894806, 0.221113488078117, -0.143546685576439,
-0.872867047786713, 1.67975413799286, -0.143546685576439,
-1.96684753894806, 1.31509399414062, -0.143546685576439,
0.950433790683746, 0.950433790683746, 0.950433790683746,
0.950433790683746, 0.221113488078117, 0.950433790683746,
-0.143546685576439, 0.950433790683746, 0.585773646831512,
-0.143546685576439, 0.950433790683746, -0.872867047786713,
-0.508206844329834, 1.67975413799286, 0.585773646831512,
-1.60218739509583, 0.585773646831512, -0.143546685576439,
0.950433790683746, 0.585773646831512, -0.143546685576439,
0.585773646831512, 0.221113488078117, -1.96684753894806,
-0.508206844329834, 0.585773646831512, -0.508206844329834,
-0.143546685576439, -0.143546685576439, -0.143546685576439,
1.67975413799286, -1.96684753894806, -0.508206844329834,
-0.872867047786713, -0.143546685576439, -0.143546685576439,
-0.143546685576439, -1.23752725124359, 0.221113488078117,
0.585773646831512, -1.96684753894806, 0.221113488078117,
-1.96684753894806, 0.950433790683746, 0.585773646831512,
-1.96684753894806, 1.31509399414062, -0.143546685576439,
-0.872867047786713, 0.585773646831512, -1.60218739509583,
0.221113488078117, -1.96684753894806, -0.143546685576439,
-0.508206844329834, 0.585773646831512, 0.221113488078117,
0.585773646831512, 0.950433790683746, -0.143546685576439,
-0.143546685576439, 0.950433790683746, 0.221113488078117,
-0.143546685576439, -0.508206844329834, -0.143546685576439,
-0.872867047786713, NA, 0.221113488078117, -0.872867047786713,
-0.143546685576439, -0.143546685576439, 1.31509399414062,
-1.23752725124359, 0.221113488078117, 1.67975413799286, 0.221113488078117,
-0.872867047786713, 1.67975413799286, -0.143546685576439,
-0.143546685576439, 1.31509399414062, -0.143546685576439,
1.67975413799286, -0.143546685576439, NA, 0.950433790683746,
0.585773646831512, 0.221113488078117, -0.143546685576439,
1.31509399414062, -0.508206844329834, -0.143546685576439,
-0.143546685576439, 1.31509399414062, 0.950433790683746,
-0.872867047786713, 0.950433790683746, 0.221113488078117,
0.221113488078117, -0.143546685576439, -1.23752725124359,
-1.23752725124359, 1.67975413799286, -0.143546685576439,
1.67975413799286, -0.143546685576439, -0.508206844329834,
-0.143546685576439, -0.143546685576439, 0.585773646831512,
-1.23752725124359, 0.585773646831512, -0.872867047786713,
0.950433790683746, -0.143546685576439, 0.585773646831512,
-0.508206844329834, -0.872867047786713, -1.60218739509583,
-0.143546685576439, -0.508206844329834, -0.143546685576439,
0.221113488078117, -1.23752725124359, 0.585773646831512,
0.585773646831512, -0.143546685576439, 0.950433790683746,
0.950433790683746, -0.143546685576439, 0.585773646831512,
1.31509399414062, -0.143546685576439, 1.67975413799286, 1.67975413799286,
1.31509399414062, -0.508206844329834, 1.67975413799286, -0.143546685576439,
-1.23752725124359, -1.60218739509583, -0.143546685576439,
0.950433790683746, -0.872867047786713, 1.67975413799286,
-0.508206844329834, 0.585773646831512, -1.96684753894806,
1.67975413799286, -0.872867047786713, -0.143546685576439,
0.950433790683746, NA, -0.143546685576439, 1.67975413799286,
0.585773646831512, -0.143546685576439, -1.23752725124359,
1.67975413799286, 0.221113488078117, 1.31509399414062, -0.143546685576439,
0.585773646831512, 0.221113488078117, -1.23752725124359,
0.585773646831512, 0.950433790683746, 0.950433790683746,
0.585773646831512, 0.221113488078117, 0.585773646831512,
-1.60218739509583, 0.950433790683746, 0.585773646831512,
-0.872867047786713, 0.221113488078117, 0.585773646831512,
-0.143546685576439, -1.96684753894806, -0.143546685576439,
0.950433790683746, 1.67975413799286, -0.872867047786713,
1.67975413799286, 0.585773646831512, 0.950433790683746, -0.143546685576439,
-1.60218739509583, 1.31509399414062, 0.585773646831512, 0.585773646831512,
0.221113488078117, -0.143546685576439, 0.585773646831512,
0.585773646831512, -1.96684753894806, 0.221113488078117,
1.67975413799286, 1.67975413799286, 0.221113488078117, 1.67975413799286,
-0.508206844329834, 0.950433790683746, -1.96684753894806,
1.67975413799286, -0.143546685576439, -0.872867047786713,
-1.96684753894806, -1.60218739509583, -0.143546685576439,
-0.143546685576439, -0.143546685576439)), row.names = c(NA, -400L), class = c("tbl_df", "tbl", "data.frame"
))
example_tidyLPA<- estimate_profiles(sample_tidyLPA, 4, variances="varying", covariances="varying", package="MplusAutomation")
plot_profiles(example_tidyLPA, add_line=F, rawdata=F)
R version 3.5.2 (2018-12-20)
Platform: x86_64-apple-darwin15.6.0 (64-bit)
Running under: macOS Mojave 10.14.3
Matrix products: default
BLAS: /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libBLAS.dylib
LAPACK: /Library/Frameworks/R.framework/Versions/3.5/Resources/lib/libRlapack.dylib
locale:
[1] en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8
attached base packages:
[1] stats graphics grDevices utils datasets methods base
other attached packages:
[1] MplusAutomation_0.7-3 tidyLPA_1.0.2
loaded via a namespace (and not attached):
[1] Rcpp_1.0.1 magrittr_1.5 mclust_5.4.3 tidyselect_0.2.5
[5] munsell_0.5.0 xtable_1.8-4 colorspace_1.4-1 lattice_0.20-38
[9] R6_2.4.0 rlang_0.3.4 plyr_1.8.4 dplyr_0.8.0.1
[13] tools_3.5.2 parallel_3.5.2 grid_3.5.2 data.table_1.12.2
[17] gtable_0.3.0 texreg_1.36.23 coda_0.19-2 digest_0.6.18
[21] lazyeval_0.2.2 assertthat_0.2.1 tibble_2.1.1 crayon_1.3.4
[25] purrr_0.3.2 ggplot2_3.1.1 glue_1.3.1 gsubfn_0.7
[29] pander_0.6.3 compiler_3.5.2 pillar_1.3.1 scales_1.0.0
[33] boot_1.3-20 proto_1.0.0 pkgconfig_2.0.2
I think that this was a very simple fix, thanks so much for the extensive example to work with! Can you please re-install from my Github and try again?
I re-installed the package. Good news is that the error does not come up anymore. Bad news is that there's a new one:
Error in unique(df_raw$Variable) : object 'df_raw' not found
Could you have another try please?
It's working now! Thanks a lot, C.J., that's great!
When plotting models other than model 1, plot_profiles does not overlay the dots for the class means and the boxes for the standard deviations of each indicator. Instead, the means dots land all the way to the left and the boxes all the way to the right. This seems to only work properly for model 1. plot_profiles_bug.pdf