SAS is a proprietary cross-platform general-purpose statistical software package. [Official Website](http://www.sas.com/index.html)

learn more… | top users | synonyms

0
votes
0answers
11 views

Bootstrapping in SAS - PROC LOGISTIC - Next steps ? how to score / perform diagnostics?

My question is as follows. I am referencing the following paper by David Cassell - wherein David talks about bootstrapping techniques in SAS using PROC SURVEYSELECT (many thanks to David - truly a ...
1
vote
0answers
21 views

Linear trend in SAS using contrast

I've been struggling with this problem for a couple of hours, and I could use some advice. I have a linear regression model with two continuous predictors and a categorical one (with 4 levels). I ...
0
votes
0answers
19 views

How do I determine the innovation term in an ARIMA equation?

I am not a statistics specialist : I had to take over the internship subject of another student to include it in mine. He was working with $SARIMAX$ models and I would like to import them in an ...
2
votes
0answers
16 views

How do you test for trend in a generalized linear model, particularly for odd numbers of levels of a variable?

I'm trying to test for a trend across levels of a categorical variable using a contrast statement in a model and can not figure out how to do it when there are odd numbers of levels. Looking at SAS's ...
0
votes
0answers
40 views

Probability of Default

I'm doing a project to predict probability of delinquent for individual loans. Seems the model I fit is not good and I want to improve the model. However, I'm confused by the results I got and don't ...
2
votes
1answer
44 views

Objective test for proportionality assumption in Cox Regression Model (SAS)?

I was trying to fit Cox Regression (aka Proportional Hazard) model on some cancer data (N=2288). I got the following output from SAS proc phreg: ...
0
votes
0answers
9 views

Problem when including code in a macro [migrated]

I don't know if it is the right place to post this, but it seemed to me I would be more likely to get an answer there. Currrently working on SAS for an internship, I am trying to write a macro in ...
0
votes
0answers
11 views

Autoregressive model with input variables in proc arima procedure

I am currently working on the time series analysis for series Y but I have to use other two variable A and B as an input variable in SAS proc arima procedure. But I am unable to interpret the cross ...
7
votes
3answers
103 views

testing logistic regression coefficients using $t$ and residual deviance degrees of freedom

Summary: Is there any statistical theory to support the use of the $t$-distribution (with degrees of freedom based on the residual deviance) for tests of logistic regression coefficients, rather than ...
0
votes
0answers
23 views

How to get correlation between two categorical variable and a categorical variable and continuous variable?

I am building a regression model and I need to calculate the below to check for correlations Correlation between 2 Multi level categorical variables or 2 binary variables Correlation between a Multi ...
1
vote
2answers
44 views

How to analyze this messy design?

I need to analyze a data-set, with a very messy design, I am not sure how. I will try to make it simple. A new kind of stitches was invented, and is tested vs. 2 old kind of stitches. I will call ...
4
votes
3answers
107 views

Estimating the ratio of cell means in ANOVA under lognormal assumption

I am conducting a two-sample test (1-way ANOVA with 2 treatments), and the goal is to estimate the ratio of cell means assuming that the data are lognormal. A simple approach is to log the response ...
0
votes
0answers
15 views

SAS syntax to find differences in regards to a control treatment

I am working with a data set of bacterial cell counts, using flow cytometry. I recorded the cell number in 3 different species of bacteria, all treated with 3 different compounds (L-aspartic acid, ...
1
vote
2answers
48 views

Is it possible for Cramer's V to be negative?

To my understanding, Cramer's V cannot be negative because of the way we define it. But here's what I got from SAS:
0
votes
0answers
3 views

How to read this multi-format data in SAS? [migrated]

I have an odd dataset that I need to import into SAS, splitting the records into two tables depending on formatting, and dropping some records altogether. The data is structured as follows: ...
2
votes
1answer
43 views

Wald test and Type III test don't agree?

I am having trouble understanding the output here. In the green table, it seems like SAS is saying "Gender F" and "Gender M" are not significant. However, in the blue table, seems like it's saying ...
0
votes
1answer
75 views

Too many p-value less than 0.0001 is alarming?

Can anyone explain why having too many p-value less than 0.001 is alarming? Like what happens to my model right now: All independent variables are categorical except for Calendar_Year. There are ...
0
votes
0answers
13 views

Logistics Regression Stoped at Step 0 with SAS Enterprise Miner

I use some insurance quote data with demographic data as variables and the target is binary (0,1). The total observations is around 50,000 and the variables are around 60. The demographic data is ...
0
votes
0answers
10 views

SAS - grouping and ordering of events by date [migrated]

This should be rather straightforward to do through SAS, I hope. I want to know the order that person tried different drug therapies. Some people may try a therapy for more than 1 month, but really we ...
1
vote
1answer
31 views

Concordance vs. Sensitivity

I am confused between these two terms: sensitivity and concordance. What I understand about these two terms: Concordance: the number of pairs where actual 1s have higher predicted probability of ...
0
votes
0answers
22 views

How to apply predict functionality of R in SAS?

do we have any proc or way that we can apply a model built on train dataset to test dataset using the predict function similar to R in SAS?
1
vote
0answers
29 views

Estimating the absolute decline of rates

Giving it another shot at describing my problem properly. I want to calculate the the crude event rates (10000person/years) for patients heart failure debut (variable name "heart_estimate") during ...
0
votes
0answers
26 views

Random effects models / Integrate over the random effect

I am trying to do maximum likelihood estimation and trying to see if the problem can be formulated using a random effect model. Here is the problem description: There are $100$ pairs $(N_i, D_i)$ ...
-1
votes
1answer
29 views

Box Cox transformed my data, now how to use it in my mixed model? [closed]

Sorry for the (most likely) simple question, but I have Box Cox transformed my data in SAS, but I am unsure how to use the transformed data in my mixed model. Do I output it to a new file, and use ...
1
vote
1answer
41 views

Why does SAS Enterprise Miner keep all dummy variables for a coded categorical variable in stepwise logistic regression?

SAS Enterprise Miner nicely creates coded dummy variables for any categorical variables used in a logistic regression model. When it performs a variable selection using stepwise sequential selection ...
0
votes
0answers
13 views

Fitting a Mixed Model with Random and Repeated effects in SAS

I have want to fit a linear regression with repeated measures and random effects. The data come from clinical observations. In CT images The dependent variable is the diameter of a lymph node lesion ...
0
votes
0answers
32 views

Why are 'random' and 'repeated' in mixed models in SAS both producing the same result?

Why does SAS random and repeated both produce the same result? Can someone explain this in detail? For example: ...
2
votes
2answers
103 views

Can we use a coefficient of variation as a statistic for testing homogeneity of variance?

There are well-known HOV tests, for example Levene's, Brown-Forsythe's, Barlett's available in SAS and R. But $C_v$ also deals with dispersion, can we use it to understand the degree of HOV? July ...
3
votes
1answer
34 views

How to get only positive values when imputing data?

Suppose age is normally distributed with mean 20 and standard deviation 5. How do you ensure that you get only positive values when you sample age from this distribution? I am trying to impute ...
1
vote
0answers
25 views

How to apply the random statement in my model?

i am trying to model the following data in SAS using proc glimmix and i would like feedback if i have modelled my data correctly. My data consist of individual chickens (ID) who are grouped by ...
0
votes
0answers
8 views

ARIMA - is it normal to be unable to recover DGP of simulated data with 200,000 datapoints?

When learning how to use a statistical model, I often create a simulation of the DGP, and run simulated data through the software to make sure I know what I'm looking at. I've done this for Proc ...
0
votes
0answers
10 views

SSCP in analysis of covariance

I want to use analysis of covariance in R. The model is $y_{ij} = \mu + t_i + r_j + b(x_{ij} - \bar{x}) + e_{ij} $ In R it is possible to get Ryy, Tyy, Eyy, SSE as well as b and adjusted treatment ...
1
vote
0answers
16 views

Cox regression problem with time varying covariates

I was working on a cox regression problem and was refering to this link: http://support.sas.com/documentation/cdl/en/statug/63347/HTML/default/viewer.htm#statug_phreg_sect050.htm I have few ...
0
votes
0answers
26 views

Proc Mixed statement

Suppose I have a data set: ...
0
votes
0answers
22 views

Use repeated measures to predict binary outcome

I had an experiment using a 2 (between-subject variable, say Drug treatment) X 3 (within-subject variable, say Condition, which is counter-balanced, so time is not a concern here). Each condition has ...
0
votes
1answer
29 views

manipulating arrays in SAS

English is not my first language. Here are my questions. I am using proportions ((0.1, 0.25, 0.25, 0.4) to generate 4 classes of data (1 variable 4 levels) in SAS based on the code below, ...
0
votes
1answer
53 views

Dependent variable coding for logistic regression in R

Given the outcome variable in a dataframe is a factored/categorical variable, when regressing the dependent variable (DV) onto a set of independent variables (IVs), what is the model predicting? The ...
2
votes
0answers
39 views

Help finding method of estimating regression parameters for a given performance

Pardon my ignorance, for I have very basic training in statistics, but have never taken a regression course. I ran an experiment where participants are in one of two conditions (between subjects). ...
1
vote
1answer
121 views

Regression coefficients with longitudinal data yields different results in R and SAS

I have a question about SAS and R. For a research, I used a longitudinal data and I initially used SAS (GLIMMIX) and then I analyzed the data with R (...
2
votes
1answer
40 views

Which test to use to measure if target has been met?

The photo below is an example of the result i would like to obtain using the test which i cannot find in the article itself, i was hoping maybe any of you would know. I have tried to carry out chi ...
1
vote
1answer
49 views

SAS Proc Mixed model interpretation

I'm fitting a linear mixed model by SAS. There are 596 sectors and 8489 subjects. (each sector contains 10~15 subjects). Each subject is measured at most 6 times, so the total number of observation is ...
1
vote
0answers
26 views

Guessing starting values for PARAMETERS statement in PROC NLIN

How to guess what should be the starting values for beta estimates, which we need to specify in PARMS or PARAMETERS statement while using PROC NLIN (PROC NLIN is used to run non-linear regression in ...
3
votes
1answer
30 views

Finding parts of categorical variables that “go together”

Good morning all, I'm working on a project related to the occupations that university graduates are likely to go into. I have a large data set (N in the hundreds of thousands) where the unit of ...
0
votes
0answers
55 views

How to cluster with binary, nominal, ordinal and continuous variables?

I am using SAS to do clustering analysis on a huge dataset. Since my dataset contains various types of variables, I am confused about the appropriate method to perform the analysis. Here are my ...
0
votes
0answers
33 views

Adding values for missing dates in time-series data using SAS

I am having trouble figuring out how to create entries for missing dates in my time-series data. I'm trying to use proc expand and I'm able to get entries for dates between the already existing dates ...
2
votes
0answers
31 views

How to reconcile SAS hazard ratio standard error with actual value

I am trying to replicate the "C3 Contrast" (Output 66.3.7) at the bottom of: http://support.sas.com/documentation/cdl/en/statug/63962/HTML/default/viewer.htm#statug_phreg_sect048.htm I am able to ...
2
votes
1answer
21 views

SAS: How to create variables from the values given in a specific column of a table? [closed]

I'm using SAS and have come across a problem. I have a dataset with some variables / columns, one of which has values of only the following: blue, ...
2
votes
1answer
43 views

How do I report Lasso results in an article?

I am using Lasso to reduce my number of variables and I have identified which variables had been retained after running my analysis (e.g. yrseduc, age). However, I don't know which numbers I should ...
1
vote
1answer
58 views

How many principal components on a PLS with SAS

I'm doing a PLS regression with SAS. My man-a asked me to do find the numbers of principal components for the dataset I'm working with through SAS. As I've never done that before, I'm confused on how ...
1
vote
0answers
53 views

ARIMA model selection in SAS

I want to fit an ARIMA model to my data, however I don't know how to select the best ARIMA model using the proc ARIMA command. First of all I know I want to ...