# Tagged Questions

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

15 views

### Clustering mixed variables in SAS

I have following variables in my dataset: Working hours (numerical:ordinal) Effectiveness (categorical:ordinal ; 4 values-> (poor,average,good,best)) Satisfaction (categorical:ordinal ; 4 values-> ...
11k views

### R vs SAS, why is SAS prefered by private companies?

I learned R but it seems that companies are much more interested in SAS experience. What are the advantages of SAS over R?
59 views

### Repeated Measures in R, SAS or SPSS: Whale Body Temperature Data

I have a question regarding a repeated measures experiment. I have 5 whales (randomly selected) that I recorded body temperature on. Data was collected via satellite, programmed to transmit records at ...
38 views

### ARIMA and external regressors in SAS and R

So I remember reading somewhere that when we have external regressors, auto.arima cannot make correct predictions for the order of difference for either ...
588 views

### SAS Proc Arima - DF, ADF, SIC, AIC, autocorrelation in residuals

I am using Proc Arima to produce the Dickey-Fuller and the augmented Dickey-Fuller tests. According to documentation Proc Arima uses the Dickey-Fuller method that tests the following hypothesis: ...
32 views

### Difference between GLM with intercept of subject VS repeated-measures ANOVA? [SAS code]

I've spent days trying to determine the difference between these two methods, which, as best I can tell, represent the univariate and multivariate approaches to a within-subjects design. Can anybody ...
19 views

### Different results from SAS PROC MIXED procedure and R lme function

I have 3(treatment)x3(period)x6(sequence) crossover design data. I have used SAS PROC MIXED procedure and I got the results with following code: ...
101 views

### R equivalent of Proc Nnpar1way with D option

I am trying to match SAS output with R. I am using Proc Npar1way with D option to get KS test statistic. Here X is a binary ...
193 views

### How to calculate 95% CI for OR for a different reference category without running the SAS logistics again?

My question is about calculation of confidence interval (CI) for odds ratio (OR) from a SAS output of a logistic regression model for a different reference category without running the SAS program ...
17 views

### Proc GENMOD estimate statement with 2 continuous variables?

I'm testing an ordinal scale measuring dyskinesia (range=0-4) via proc genmod, with the independent variables in the model being Drug1 and Drug2. Both of these variables are continuous. I want to ...
86 views

### Pre-Post analysis with repeated measure

I've 50 subjects and ran an experiement 4 times for each subject and collected the pre and post vlaues for each run. I need to do pre post analysis. Here a sample of my data: ...
16 views

### Survival analysis in SAS-is there a way to include a random effect with interval censored data?

I'm trying to use some form of survival analysis (e.g. accelerated failure time or proportional hazards) to study seed germination time. My data is interval censored (also called "grouped-time") and ...
75 views

### Frequency ratio test with correlation structures

I have some data about two machines, each machine has 10-15 operation logs, and inside the log are the time-stamped status checks that takes on the value of 1 if ...
53 views

SAS code : ...
20 views

### Comparing two different but related datasets

Background: I used a principal component analysis to re-define neighborhood boundaries. Each neighborhood is made up of at least 2 census tracts. There were 40 neighborhoods in my old model. I have ...
229 views

146 views

### Which are the correct sum of squares for repeated measures ? (balanced example)

Below are three ways to fit a MANOVA model in R and to extract ANOVA tables from the fitted model. The design is balanced. All methods give different results. The data are 5 groups of 4 individuals ...
197 views

### using a number of variables (dummy) in mixed model analysis in R

I have following type of data: ...
37 views

### Media or market mix modeling?

Can anyone tell me how to build media mix model? Is it similar to market mix model? What are the steps and variables in the model? If I want to build in SAS which procedure should I use?
74 views

### How to generate the time series from a given model?

we consider a sparse autoregressive time series of length 1000 obeying the model X(t)=0.2X(t-1)+0.1X(t-3)+0.2X(t-5)+0.3X(t-10)+0.1X(t-15)+Z（t） with nonzero coefficients at lags 1,3,5,10 and 15,where ...
30 views

### Experimental design & model

I'm testing the effect of land history and soil organisms on the growth of Stinging nettle. To investigate the effect of land history ("hist") on growth, soil samples ("sample") were collected at 10 ...
2k views

### Is there an R equivalent of SAS PROC FREQ?

Does anyone know of an R equivalent to SAS PROC FREQ? I am trying to generate summary descriptive statistics for multiple variables at once.
61 views

### Frequency Table for Repeated Measures

I've 12 unique subjects, and in total I've almost 1700 observations. I've an ordinal response variable (has 4 levels) and 3 categorical covariates (each one has different levels 3, 5, 2, and 4 ...
140 views

### Results from multinomial ordinal logistic regression model

I've an ordinal response variable (has 4 levels) and 3 categorical covariates (each one has different levels 3, 5, 2, and 4 respectively). We also are dealing with repeated observations. I fitted a ...
47 views

### How do I get individual values of the random effect intercept in SPSS?

I am implementing a random intercept model in SPSS, and would like to obtain the subject-specific values of the random intercept to test it for normality. Does anyone know what's the SAS equivalent of ...
82 views

### SAS error: variance covariance matrix singular

I am now working with a classmate on an estimate of an Almost Ideal Demand System for tobacco consumption. We have chosen to make an AIDS regression using goods tobacco and alchol, and the CPI price ...
158 views

### Mixed model runs well in R whereas a random effect has only one level

How do you explain that ? There's only one operator but the mixed model returns an estimate for the operator random effect. Furthermore the ...
476 views

### Improving accuracy of a binary classification when the target is unbalanced

I am working on the BRFSS dataset with the goal of predicting Diabetes. The dataset has 500,000 rows and 405 columns. It is a 0/1 classification problem, the ratio of 0 to 1 is 90:10. I tried using ...
186 views

### How to specify in r spatial covariance structure similar to SAS sp(pow) in a marginal model?

I'm currently translating existing code from SAS to R. I'm working on longitudinal data (CD4 count over time). I have the following SAS code : ...
46 views

### Repeated measure problem (Discrete variables) [duplicate]

Possible Duplicate: Difference between generalized linear models & generalized linear mixed models in SPSS Repeated measure problem I have 6 subjects. For each subject, we measured ...