Bookmark and Share

Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down on April 23, and its replacement, is already up and running.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

st: xtmixed slope cross validation

From   "Proitsi, Petroula" <>
To   "" <>
Subject   st: xtmixed slope cross validation
Date   Thu, 1 Dec 2011 09:07:20 +0000

Dear Statalist,
I have  predicted the slopes for memory decline in a sample of demented patients
- in order to validate my model I split my sample into a "training" and "test" set with the idea to fit a model on the training set
and then predict the slopes of the "test"set and compare these to the slopes of the whole sample.

in the help for the predict command says that you can run a model using one dataset (I used the "train"), use a different dataset (then used the "test")  and then used predict (in my case I typed:  predict r_slope1 r_inter1, reffects)-
However, I get that message: no observations.
Does anyone have any idea of how to predict the slopes for the "test" set, using the slopes of the "train" set?
many thanks in advance
*   For searches and help try:

© Copyright 1996–2016 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index