Accounting for Different Levels of Twin Relatedness in SAS PROC MIXED
I have a dataset with a number of identical twin pairs and fraternal twin pairs. I want to examine the relationship between two variables (let's call them INDEPENDENT and DEPENDENT). However, I can't...
View ArticleDiscrete Choice Experiment - Canonical Correlations (HELP)
Hi, I am planning a DCE and I have run into a problem of "canonical correlations" with the SAS macros. Has anyone ever found this problem of canonical correlations with DCE? I am wondering if this is...
View ArticleModeling step by step in SAS
Can anyone guide me in building a credit score model in SAS from beginning to end? Like how to get started with it and how to proceed?
View ArticleHelo me to Importing flat file
Hi i have a flat file around 100gb. it has 200 variables like company name, address..like that. In company name i have fields like google,ibm,tcs like that. i want to import this flat file with a...
View ArticleIndirect and direct effects with multiple imputation (MIANALYZE)
Hi all, I'm using SAS, doing some SEM with multiple imputation (PROC MI).. I can pull out almost everything I need using PROC CALIS and the PATH statement. However, I'm pulling out the the indirect and...
View ArticleCorrections for FW error in regression
There are various approaches for dealing with family wise error in regression. Does anyone know how these are implemented in SAS (I know how they are done in ANOVA but not regression in SAS)?
View ArticleHow to pick subdirectories from a big directory?
Dear all: I have a question. A parent directory has many many subdirectories. I just want to select partial subdirectories from the parent directory. For example, I want to pick subdirectories named...
View ArticleSAS code
Hello, I am trying to replicate this SAS code in STATA. I understand most of the commands, but I would like to know what org(upc) means. Is it like an indicator variable? Also, is the command assigning...
View ArticleNew date variable
I'm trying to create a new date variable using values from other variables using several date functions. I want to use the month function and day function from the Hire_Date field and the constant of...
View Articlesas developer
Hi all, I have done bachelor's in computer applications in 2008 after which I changed my career into customer services and don't really have any IT experience. Now I am looking to start again in IT...
View ArticleHow to calculate Log Hazard Ratio in SAS
Code: proc phreg data = analysis ; class c diabetes /descending; model days*ind(0) = c diabetes id/ rl ; id= c *diabetes; hazardratio id; run; I am trying to run a simple Cox Regression in SAS. I cant...
View ArticleCase sensitivity
I spent several hours today trying to figure out why code I was running was not working. I got no error messages, but there were no results from a table that had thousands of observations. Then, more...
View ArticleFedSQL
I have never heard of this before, but it has some amazing functions [for instance one function calculates the p value associated with a t distribution very useful when running t test]. Apparently this...
View ArticleNegative binomial model - saturated?
I am trying to run a model for cases (n) to see if area, period, and area*period are significant predictors. I am really only interested in the area*period component because the two variables on their...
View ArticleGenerating distributions for all variables in a data set.
This is fairly simple, but I figured others might find this of value. https://communities.sas.com/thread/64329
View ArticleSAS proceedings
This is a gold mine both for stats, and other areas, and coding. I have only gone to the 2010 and 2014 sites and I have five pages of links that I found useful. This is the main site....
View Articleinterpretation for %DFTEST results
Hello, I need to interpret the results of this macro %DFTEST: proc print data=sashelp.air;run; %dftest(sashelp.air, air, ar=1, dif=(1), trend=1, outstat=delete); proc print data=delete; run; I created...
View ArticlePoissonness plot
This is essentially the equivalent of a QQ plot for Poisson distribution, which can not use QQ plots since the distribution is of discrete data. Michael Friendly tells you how to use these and gives...
View ArticleRepeated Measures Nested Model in PROC Mixed?
Hello, I'm looking for help analyzing data. Here's the experimental setup: 12 experimental plots, divided into 3 blocks. Each block is a factorial combination of two treatments (precipitation,...
View ArticleCreate excel sheet (from SAS) with Data Validation Options
Hopefully this makes sense: So in excel you can use the Data Validation tool to create drop down lists to essentially force a user to have to enter a specific value in a cell. I'm wondering if that can...
View Article