Least-square means are computed as L'B, where B is the coefficient matrix. So how is B computed when there are missing rows in the X matrix?
(X'X)- X'Y – if the X matrix is simply based on what is there, I see only present values.
So list the X matrix – you can do that in Mixed I believe.
Or add a 0 value for some of the missing cases. Do you get the same ls means? If so, then the X matrix is formed by adding missing rows.
-----------------------------------------------------------------------
Confidentiality Notice: This e-mail message, including any attachments,
is for the sole use of the intended recipient(s) and may contain
privileged and confidential information. Any unauthorized review, use,
disclosure or distribution is prohibited. If you are not the intended
recipient, please contact the sender by reply e-mail and destroy
all copies of the original message.
------Original Message------
Hello All,
I have a technical mixed model question to pose to the group.
First the setup… to simplify the scenario; let’s say my outcome is individual patient cost for two time periods (year 1 and 2). Costs for each patient are greater than 0 and it is possible for patients to have data at year 1 only, year 2 only, or both year 1 and 2. For those patients with data only at 1 time point, their data is NOT missing. Rather, it is because their cost is 0 for that year and I am not interested in including 0s in the mean estimates. For now, let’s also say I am satisfied assuming a normal distribution for the analysis. I wish to estimate the mean cost for both years as well as estimate and test for a difference between the two years. However, I am truly only interested in estimates equivalent to the arithmetic means (not including 0 costs and not accounting for subjects without observations at both time points given this data really is not missing). Mixed models (specifically I am using SAS proc mixed with a subject specific random intercept or using compound symmetry to structure the residual covariance matrix) are great for handling missing observations. In this scenario the estimates are impacted by individuals having only one observation and, thus, are not equal to the arithmetic mean… I do not want this (I know… odd given this is a benefit of mixed model analysis).
So my question is, given this scenario is it possible to get mean estimates the same as the arithmetic means with standard errors accounting for the repeated measures?
Thank you for reading this post and any insights will be much appreciated!
Best,
Derek
------------------------------
Derek Blankenship
------------------------------