How to retain days and stop in conditional situation and then keep going?
I am trying to count the duration of medication use. I would like to count days that every outpatient visit if they are not exceed 90 days between every visit.
The med_date is the date of every outpatient visit. I first use lag function to count the days between each visit(variable diff).
And I want to retain them and stop if the diff>90.
Then keep going with another id.
My code would stop if the diff>90, but I have no idea how to keep going
Issues while converting dates into SAS format
I have a big dataset with dates in the char format dd/mm/yyyy (e.g., 07/06/2014) I would like to convert into SAS format. I tried using input (variable_name, MMDDYY10.) but with the following issues:
How can I use PROC MDC to predict the choice probabilities for a test sample? – nchoice error
I am trying to predict choice probabilities through proc mdc using the following code:
proc sort with nodupkey based on the value of a variable
suppose to have the following dataset:
proc sort with nodupkey based on the value of a variable
suppose to have the following dataset:
How to determine number of rows in a dataset in the do loop
I have below SAS
code
Error in downloading data directly from internet
I want to download some data in CSV format from internet as used below code
How to add all the columns at once in a CATS function instead of writing them one by one
I have the following data:
Format dates as sas dates
I’m in a really frustrating situation.
I received a dataset to be analyzed. It contains dates as follows:
Reorder columns in a SAS dataset
I have the following dataset: