Dear All:

How can I make predictions given the new test vectors using the

developed model? I know I can record the coefficients and write a

couple of lines's code to do that, while I think do it in SAS might be

simpler since the model was developed through SAS.

Thank you.

Joey

How can I make predictions given the new test vectors using the

developed model? I know I can record the coefficients and write a

couple of lines's code to do that, while I think do it in SAS might be

simpler since the model was developed through SAS.

Thank you.

Joey

Joey:

another way, which i think its easier, is to use the weight option in

most modeling Procs. By assigning the binary code to the observations, Proc

genmod/logistic etc will only use the observations with 1 to build the

model. However, it will predict the whole dataset including the observation

with 0.

Yin

another way, which i think its easier, is to use the weight option in

most modeling Procs. By assigning the binary code to the observations, Proc

genmod/logistic etc will only use the observations with 1 to build the

model. However, it will predict the whole dataset including the observation

with 0.

Yin

Regardless of the procedure:

ODS trace on ;

<PROC>

ODS trace off ;

This is your true friend. Then you need simply to use:

ODS OUTPUT XXX = XXX ;

<PROC>

ODS OUTPUT CLOSE ;

You CANNOT forget the RUN statements and any NOPRINT options must be

omitted.

Many procedures off predicted estimates, but since you said "new test

vectors", I assume you want to apply the estimated coefficient to other

data.

HTH,

Kevin

Kevin Viel, PhD

Post-doctoral fellow

Department of Genetics

Southwest Foundation for Biomedical Research

San Antonio, TX 78227

I consider you great members of SAS-L a wonderful classroom. The ease

with which I accessed your expertise was a great relief, not tomention a

respectable form of internet entertainment (no offense World of Warcraft

<g>).

Be sure that I will try to acknowledge SAS-L, if I get my subsequent

dissertation studies published :)

Thank you,

Kevin

Kevin Viel, PhD

Post-doctoral fellow

Department of Genetics

Southwest Foundation for Biomedical Research

San Antonio, TX 78227

Joe Whitehurst sagely caught:

Mazel tov! Congrats! And all that stuff.

And maybe you can buy us all a drink at SGF. :-) :-)

David

_________________________________________________________________

A new home for Mom, no cleanup required. All starts here.

http://www.reallivemoms.com ?ocid=TXT_TAGHM&loc=us

Mazel tov! Congrats! And all that stuff.

And maybe you can buy us all a drink at SGF. :-) :-)

David

_________________________________________________________________

A new home for Mom, no cleanup required. All starts here.

http://www.reallivemoms.com ?ocid=TXT_TAGHM&loc=us

Thanks Arthur, Yin, Kevin, your suggestions are very helpful.

Sincerely,

Joey

Sincerely,

Joey

Similar Threads

1. how to obtain variance of prediction of new observation using linear regression model

Hello there, Is there anyone who can help me to obtain the variance of the individual predictor for a new observation (Assume new observation is Xh and its predicted response is: Yh^, then sigma(Yh^)=Xh'*Sigma(b)*Xh) using the linear regression model. I tried PROC REG and PROC GLM but not found such a option. Or did I miss something? Thank you very much! Wendy

2. Modeling Zero-Inflated Regression Models Using SAS (Procedure IML)

3. SAS Enterprise Miner - making predictions,

4. I updated my web site and made a prediction

5. Prediction Intervals for Logistic Regression

I working on a project that uses prediction intervals rather than confidence intervals. From my linear models work I recall that the sampling variance for a mean response of N variables is: s2(y hat) = s2(b0) + X_1^2 s2(b1) + X_2^2 s2(b2) + X_3^2 s2(b3) + €€ X_n^2 s2(bn) + 2ov(bi , bj) The variance for a new prediction s2(y hat_new) = s2(y hat) + MSE So far so good. But the problem I working on involves a prediction from logistic regression. In Hosmer & Lemeshow book, the sampling variance for the logit is presented in the same way as for linear regression (as given in the formula for s2(y hat) above). But then how can I derive s2 (y hat_new) when there is no MSE ? Thanks! Andrew Kramer

6. how to develop using SAS/AF

7. Confidence/Prediction Interval error w/ linear regression

Hello all.. I'm working on some single variable linear regressions, and would like to compute a confidence interval and a prediction interval for my data. If I compute them by hand, they are coming out different from the clb/cli intervals in SAS. I was told by a friend simply that "SAS doesn't compute prediction and confidence intervals correctly for regressions, but you can trick it into giving you the right values." Can anyone shed more light on this issue, and perhaps point me toward a site or other reference that I can use to understand the difference, and figure out what the "trick" is? Thanks all!