aaronwolen / mxtx

mxtx: OpenMx Transcriber
0 stars 0 forks source link

add observed variable table to output #5

Closed tpyork closed 7 years ago

tpyork commented 7 years ago

See example from old Mx. Need good names, e.g. what is "VL" ?

Summary of VL file data for group  2

                G1_T1      G2_T1      G3_T1      G4_T1      G1_T2      G2_T2
     Code      1.0000     2.0000     3.0000     4.0000     5.0000     6.0000
   Number    369.0000   168.0000    36.0000     7.0000   341.0000   147.0000
     Mean     39.1436    38.7143    38.7778    39.5714    38.9501    38.8367
 Variance      2.8764     2.1088     3.7840     1.1020     3.4726     2.8849
  Minimum     29.0000    34.0000    32.0000    38.0000    27.0000    29.0000
  Maximum     42.0000    41.0000    42.0000    41.0000    42.0000    42.0000

                G3_T2      G4_T2
     Code      7.0000     8.0000
   Number     39.0000     8.0000
     Mean     38.5128    39.1250
 Variance      1.3268     2.1094
  Minimum     36.0000    37.0000
  Maximum     41.0000    42.0000
aaronwolen commented 7 years ago

Here's a first pass at the summary stats table for AdeFit

.submodel variable maximum mean minimum missing variance
DZ age 0.3000 0.2372286 0.1700 0 0.0013891
bmi1 25.3704 21.4387574 18.9794 12 0.7451564
bmi2 26.8383 21.4613151 19.2262 13 0.8199487
MZ age 0.3000 0.2378735 0.1700 0 0.0013319
bmi1 25.5347 21.3533282 18.1125 19 0.7286775
bmi2 26.5016 21.3388960 19.3835 19 0.7919063

I think it makes sense to place the stats in columns so the width is fixed and the table can scale vertically to accommodate additional submodels/variables.

Any thoughts on how rows should be ordered?

aaronwolen commented 7 years ago

i don't think the row ordering makes too much difference as long as consistent across submodels.

It depends on the comparisons we want to facilitat; for example, this makes it easy to compare variables across submodels:

.variable .submodel mean variance minimum maximum missing
age MZ 0.2378735 0.0013319 0.1700 0.3000 0
age DZ 0.2372286 0.0013891 0.1700 0.3000 0
bmi1 MZ 21.3533282 0.7286775 18.1125 25.5347 19
bmi1 DZ 21.4387574 0.7451564 18.9794 25.3704 12
bmi2 MZ 21.3388960 0.7919063 19.3835 26.5016 19
bmi2 DZ 21.4613151 0.8199487 19.2262 26.8383 13

But is kind of ugly...

tpyork commented 7 years ago

I think it's one of those things that we'll need user feedback from.

aaronwolen commented 7 years ago

Okay, check the screen shot in #4 and let me know what you think.