Skip to content

vlt.stats.lme_category

  LME_CATEGORY - calculate a mixed linear model for a variable measured in different fixed categories and random effects across group

  LME = LME_CATEGORY(TBL, CATEGORIES_NAME, Y_NAME, Y_OP, REFERENCE_CATEGORY, GROUP_NAME, [RANKORDER], [LOGDATA])

  Create a linear model of the property Y_NAME that occurs in a column in 
  the table TBL, controlling for random effects that vary across the
  table column called GROUP_NAME. The model fits Y as a function of the
  categories listed in the TBL column CATEGORIES_NAME, using REFERENCE_CATEOGORY
  as a reference.



  If RANKORDER is provided and is 1, then the ranks (sort order) values of
  Y are used instead of the raw values.

  Example:
   load carsmall
   tbl = table(Mfg,Model_Year,MPG);
   Y_op = 'Y';
   % compute standard linear model
   [lme,newtable] = vlt.stats.lme_category(tbl,'Model_Year','MPG',Y_op,'70','Mfg',0)
   % compute non-parametric linear model
   [lme_,newtable_] = vlt.stats.lme_category(tbl,'Model_Year','MPG',Y_op,'70','Mfg',1)