How can I modify a data set by deleting the ith observation for every patient i.
Also,how can I build the model and output the estimated values, and save the predicted values of a variable belonging to an ith patient.
The question says dont use macro.
I have no idea on how to approach this.
It also says using cross validation method.
I attached an image of my data set
https://video.sas.com/detail/video/4414728579001/filter-and-sort-data?autoStart=true&q=filter
For simulations I highly recommend reading the paper,
http://www.sascommunity.org/wiki/Don%27t_Be_Loopy:_Re-Sampling_and_Simulation_the_SAS%C2%AE_Way
And here is some instructions for turning a program into a macro:
https://github.com/statgeek/SAS-Tutorials/blob/master/Turning%20a%20program%20into%20a%20macro.md
This is homework, so I strongly suggest you make an attempt first at all of this, do you have the 'base case' built, ie your regression code? If not, the statistics e-course is free or UCLA has many tutorials on their page.
@Stacy wrote:
How can I modify a data set by deleting the ith observation for every patient i.
Also,how can I build the model and output the estimated values, and save the predicted values of a variable belonging to an ith patient.
The question says dont use macro.
I have no idea on how to approach this.
It also says using cross validation method.
I attached an image of my data set
Here is my regression code
proc reg data=epilepsy;
model rate = Age Treatment Period/ p MSE;
output out = predicted p = yhat r = yresid;
run;
SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!
Learn how use the CAT functions in SAS to join values from multiple variables into a single value.
Find more tutorials on the SAS Users YouTube channel.
Ready to level-up your skills? Choose your own adventure.