Quantcast
Browsing all 310 articles
Browse latest View live

Proc mixed

Hello all, I am a wee bit confused about the random statement in PROC MIXED, I thought maybe you can clarify it for me in simple words. Let's for the illustration say I have an outcome variable Y, and...

View Article


Need advice writing SAS programs to read datas

4. The following table lists 3 personnel records of a company. Staff ID Birthday Monthly Salary A123 4 March 1989 8,600 A037 23 June 1957 21,450 M015 19 September 1976 17,500 Staff id number has the...

View Article


Why the macro within the datasetp loops only one time?

Dear all: I have written a macro named %xscan. I used the macro within a datastep as follows: %macro doit; %do i=1 %to 2; data work.out_data; set work.in_data; sub_str="%xscan(&i)"; output; %end;...

View Article

How to compare model fits

What is a good way to compare nested models? For example, I have some proc mixed models like this, which are the same except for the fixed effects. : PROC MIXED DATA=All; CLASS Subject; MODEL A =B C;...

View Article

Excellent opportunities for SAS Programmers

Hi Everyone, My name is Marta Nejman and I am consultant to Pharma and CRO industries at ProPharma Solutions. I am currently seeking SAS Programmers II and III as well as Principal SAS Programmers to...

View Article


Base SAS Programing: Calculating KPIs Over Different Time Ranges

Hi all. I am trying to calculate values for KPIs over certain time ranges – Response Rate, Conversion Rate and Yield. I need to use SAS to do this. This is the desired output I’m looking for: MTD/YTD...

View Article

selecting one column values based on difference between members of another...

Hi to all, i have data like this ASSAY MP Cm chr# XY1723 408068 1 XY1727 463360 1 XY1708 880744 1 XY1709 900596 1 XY487 1174585 1 XY1641 1239146 1 XY1714 3057570 1 XY1721 3522443 1 my aim is to select...

View Article

data generation

Dear Sas users I want to extend this code. The 500 person in LC 1 and the other 5020 person in LC 2. On the other hand, 150 person in c0 should be in LC 1, 150 person in c0 should be in LC2. 350 person...

View Article


Transformation didn't normalize the data set... now what?

I study and insect that has a tendency to produce non-normal data sets. I have transformed my current data set using sqrt, sqrt + 0.5, log, log10 and arcsin (even thought this prob isn't appropriate)...

View Article


SAS reading data trouble. Filling empty variables.

Hi, I'm new and I need some help. This is 1st time it happened to me. I was trying to read new file. It's tab delimited excel file, saved to .txt format. example: P_VALUE SNP_ID GENE KEGG_ID1 KEGG_ID2...

View Article

outliers identification

Hello, I am a student and i need detected outliers and influence in binary logistic regression. I use DFBETAS= names the standardized deletion parameter differences DIFCHISQ= names the deletion...

View Article

How to transpose Please Help.

Hi I have just started working on SAS and I am a beginner.. Please help me how to transpose a simple data from rows to columns.. for ex: I have PID 1 2 3 4 5 6 7 8 patient a b c d e f g h room 001 002...

View Article

problem in doing the sas programming

proc iml; S = 10; N = 100; P = 5000; call randseed(12345); Res = {0 , 0}; do rep = 1 to S; X = j(N, P, .); Y = j(N, 2, .); call randgen(x, ’normal’); call randgen(y, ’normal’); Cor = corr(Y || X)[{1...

View Article


Mixed Normal Distribution

I have to generate 1000 numbers following mixed normal distribution, (80% N(0,1), 20% N(0,25)), and I have to show their distribution in the chart. And then compare with normal distrubution (graphical)...

View Article

continuous episodes of insurance coverage

I am trying to construct episodes of coverage for patients in an insurance database. My episodes of coverage are continuous periods of time that a patient was enrolled in an insurance plan. This is...

View Article


Proc Means & storing mean in a table

I am running a means procedure on a bootstrap sample by replication number. Is there a way for me to output the mean of every replication in a table without having all the univariate results printed?...

View Article

Proc CLP - Error with scheddata

Hi guys, I've been playing around with Proc CLP to help deal with constraint problems (efficient ways to allocate resources etc). However I am running into a bit of trouble with errors in my code and...

View Article


Filter list - show the entries not matched

Hi I am using a simple filter based on a list of company names to filter-out companies of relevance from a database. What I need to do then is to find out, which of the companies in the filter-list...

View Article

SAS PROC GLIMMIX, logistic regression; how to code and interpret repeated...

Hello: Thanks for reading this post! The core of my question has to do with how to correctly code repeated measures when the repeated effect (here "sampling", could easily be "time") isn't the same for...

View Article

Very basic frequency help If I may.

Hello all. Ok I'm returning to SAS after 5 years of not using it and am self training again from scratch. I've got my basic datastep stuff sorted however some of the proc procedures have completely...

View Article
Browsing all 310 articles
Browse latest View live