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

learn more… | top users | synonyms

2
votes
0answers
17 views

SAS profile-likelihood confidence intervals and p-values - why is there a discrepancy?

Using Firth's penalized likelihood method in logistic regression, why can you get a p-value of <.05 when the confidence interval for the estimate includes 1? code: ...
-2
votes
0answers
18 views

how to code a random intercept and slope in a mixed linear model and apply LAM in SAS

I m a PhD student in New Zealand. I need to determine the impact of lameness in milk yield of cows. I measured milk yield daily as well as I recorded the cows that were observed lame in any one day . ...
1
vote
0answers
28 views

What is the code for cubic spline regression model in SAS

I ran an experiment that identified lame and non-lame cows every day for 325 days from a pool of 936 cows in one herd. At the same time, I collected data on various variables like milk volume, fat and ...
0
votes
0answers
9 views

MC Integration Interval Probability [duplicate]

We were asked this question for homework: B. Use MC integration to estimate the probability that X · exp(X ) < 2.5, assuming that X ∼ Gamma(1.2, 3.7). Details. The PDF, CDF, and QUANTILE ...
2
votes
2answers
25 views

Monte Carlo Integration Interval Probability

Use MC integration to estimate the probability that X * exp(X) < 2.5, assuming that X ~ Gamma(1.2,3.7) ...
0
votes
1answer
14 views

Converting SAS EWMA code to Python

I have the following SAS code that uses PROC FORECAST that I would like to replicated with the Python Pandas pandas.stats.moments.ewma ...
2
votes
0answers
79 views

Matrix decomposition

I have a symmetric matrix $V$ of order 10. I want to decompose $V$ in such a way that $$V=SS'$$ with $S$ being non triangular. The matrix $S$ has some restrictions that 45 cells have ‘0’ values and ...
0
votes
0answers
8 views

Multiple regressions in one proc statement

I am attempting to run a mixed model regression multiple times on various outcomes. As opposed to copying and pasting a new proc mixed statement for each outcome how can I write a statement to cycle ...
-2
votes
0answers
14 views

Creating a CI variable in SAS [migrated]

Given a Normal distribution with mean x and known variance and z is defined to be max(x,0), how do I construct a confidence interval for z? I can generate a random sample from a normal distribution, ...
-1
votes
0answers
14 views

Get values of survival function in SAS [migrated]

I generated a random sample from an exponential distribution and sorted them so they are going from lowest to highest value, giving me my order statistics. Now I need to get the values of the survival ...
1
vote
1answer
42 views

Link Functions where MLE=OLS

This is a follow-up of a question that I posted previously. I'm trying to get parameter estimates from two different SAS functions (Proc REG and ...
4
votes
1answer
79 views

R gls() vs. SAS proc mixed with interaction: Why does R complain about a singular matrix when SAS does not?

I like to keep analyses all in SAS or all in R when I can help it and lately have been using R more and more, but there's one analysis that I do somewhat routinely that has given me trouble in R. I ...
0
votes
1answer
66 views

Can I learn SAS online? [closed]

I'll complete my Master's degree in a year and I was thinking of learning SAS as I've heard it gives you an edge over other candidates while being recruited. Could you tell me if I can learn it online ...
0
votes
0answers
16 views

Multivariate multiple regression in SAS [migrated]

Suppose I want perform a multivariate multiple regression analysis and test (using a single test) the hypothesis, that the regression parameters for two explanatory variables are 0. In ...
1
vote
0answers
19 views

Estimating a single proportion from a marginal or conditional model

I had a single sample of a binary outcomes (success / failure), and I wanted to estimate the population proportion with a point estimate and a confidence interval. The problem was that some subjects ...
3
votes
0answers
39 views

A lot of iterations before converging - GLMM vs GEE question

I'm wondering if there is any implication if a model takes 100+ iterations to converge. Can I still trust the results? I'm running cumulative logit with random intercept in proc glimmix in SAS. ...
1
vote
0answers
35 views

Sample size calculation for logistic regression using simulations

I want to find the sample size for logistic regression where I have a covariate with 15 levels and the covariates interacts with time, which means that the effect of the covariates is different for ...
0
votes
0answers
27 views

Arima modelling estimate in SAS and find out if model is adequate or not

I have been attempting to do an ARIMA modelling in SAS. The series is not stationary but when I estimate the ACF and PACF p-values I don't get appropriate answers to find out if my model is adequate ...
4
votes
2answers
685 views

Do I have to learn SAS if I want to go into industry?

I am currently a PhD student in Biostatistics (finishing my 2nd year). My original goal when entering graduate school was to go into academia. Recently I have been debating this choice and wondering ...
2
votes
0answers
28 views

How to select the exponential decay constant for weighting in proc logistic?

I am trying to predict the sales conversion using proc logistics in SAS. Right now I have around 3 months of data, and it will gradually grow to more than an year over time. My intuition is that the ...
1
vote
1answer
66 views

SAS Scoring on new data

I have a training dataset with (x1,x2,x3,y) and these contain some missing observations. I ran proc logistic on this training data and got the parameter estimates (bo, b1, b2, b3). I tried to apply ...
2
votes
2answers
134 views

Multilevel models: Meaning of random intercept

I am quite confused at the moment regarding multilevel models as implemented in SAS PROC MIXED. I am new to mixed models. Let's say I have 2 treatments, a new treatment and a control. And let's say ...
2
votes
3answers
192 views

Naive Bayesian Algorithm in R/SAS for categorical input variables?

Could anyone please let me know how to implement Naive Bayesian Algorithm in R or SAS?I have got a training dataset with all the categorical predictors and target variable(3 levels).I got to build a ...
1
vote
0answers
42 views

How to constrain covariance parameters in sas proc mixed?

I would like to test whether 3 dependent variables (measured with the same participants) differ in variance. My plan is to fit one model in which the 3 variables have the same variance, and one model ...
2
votes
0answers
44 views

Survival Analysis--All variables failed the proportionality test. What next?

I am building a cox survival analysis model with a retailer's transaction data. Almost all the variables have failed the proportionality test. Can I continue with the Cox model? Should I build a ...
0
votes
0answers
21 views

IVEware warnings

When using SAS callable IVEware for multiple imputation it will occasionally throw out a warning for too many iterations. Can someone give me an idea of how many warnings are acceptable (if any) for ...
3
votes
1answer
79 views

Odds ratio traps 1 when p value significant

I have a set of imputations on which I'm using PROC GLIMMIX to build a regression model for a binary outcome. I'm using PROC MIANALYZE to roll up the output, part of which includes upper and lower ...
0
votes
0answers
51 views

Logistic Regression - Model Selection Method [duplicate]

What is the best way to know the best selection method for our logistic regression model ? Forward Selection Backward Elimination Step-wise Selection Full Model. I am running logistic regression ...
1
vote
0answers
49 views

Help Simulating Random Effects in SAS

I'm trying to create a simulation of drug concentration based on the dose of a drug given. I have some preliminary data and I used a random effects model to analyze the relationship between ...
1
vote
2answers
71 views

Two-way ANOVA on not completely normal residuals

I have 2 factors, one (Page type) of 2 levels and the other (Intensity) of 4 levels. I did a 2x4 Full Factorial Design with 10 replications, so I did 80 experiments. Then I wanted to do a two-way ...
1
vote
0answers
109 views

Strategy for finding cluster solution with positive values for Cubic Clustering Criterion

I am trying to cluster a data set with approximately 3500 entries, consisting primarily of likert-10 scale survey answers. Most of the survey answers are skewed - a typical example is below: I've ...
1
vote
1answer
73 views

How to compare performance of multiple regression models?

I am taking a little data analysis course using SAS software and I need help with pretty much the basics. There is this full description in the American Statistical Association page. Basically I ...
0
votes
0answers
65 views

How to replicate the results from Australian Institute of Sport?

I am taking a little data analysis course using SAS software. I was pretty much told to generate the results using the data and the description provided in a specific StatSci page which I am going ...
1
vote
1answer
101 views

Neural network with and without cross validation

I have been running ANN (Neural network) on my data set, until last week that I figured out I will get more robust model using Cross validation, So That's why I have started using ANN with the aid of ...
0
votes
0answers
60 views

Evaluating correlation: which test to choose

I want to evaluate the correlation between two samples of data (300 samples, 2 parameters). I've done some researches and I reached these conclusions (correct me if I'm wrong): Pearson's correlation ...
0
votes
0answers
22 views

Predicting data based on two data sets

I'm brand new to SAS programming, and I'm having difficulty figuring out this issue: I have two sets of data 1st set has 4 columns (income is a continous range of numbers, sex is 0 for male - 1 for ...
0
votes
0answers
120 views

Interpretation of Type 3 analysis of effects in proc logistic

I am trying to best understand how to interpret the type 3 analysis of effects output from proc logistic in SAS. I understand it to be interpreted in the same way ...
0
votes
2answers
140 views

Should I expect a Z-Score as an output from a Signed Rank test?

I have some data that is highly skewed. I want to test whether the median of the data is different from 1, so I decided to use a Wilcoxon Signed Rank test. The description and implementation of this ...
0
votes
0answers
61 views

Comparing two time period of same binary variables

We are a financial institution which falls under this ‘Big Bank’ category. As a part of our routine analysis on input variables that feed several of our risk models, we would like to setup an input ...
0
votes
0answers
343 views

Interpreting ACF and PACF for ARIMA model estimation for SAS

The following output is for a data set for monthly airport arrivals that have been log transformed, with first difference & seasonal difference. My interpretation from the SAS output is p=P=2 ...
0
votes
1answer
124 views

Export variance-covariance matrix using PROC GLM

I have a ordinary linear regression model like this y = b0 + b1*x + b2*z + b3*x*z I used PROC GLM in ...
0
votes
0answers
49 views

Linear Discrimination Scores

Suppose we have 4 groups of animals (pig, dog, rabbit, cat). There are 10 animals in each group. We measure the weight and pulse of each animal. Consider the following procedure in SAS: ...
0
votes
1answer
902 views
0
votes
0answers
67 views

Linear Regression-Categorical variable with 93 levels

I am a beginner in SAS. I have a data set called cars with 25 variables and 93 observations. I have attached the image of the data set. Here you can see that there is a variable ...
1
vote
0answers
27 views

Treatment Effects: Manova

Suppose we are measuring blood pressure three times a day for two treatments $A$ and $B$. 10 people are getting treatment A and 10 people are getting treatment B. Also suppose we find that there is a ...
0
votes
1answer
192 views

Negative Binomial Regression: is parameter theta (R) the reciprocal of parameter kappa (SAS)?

After some frantic googling I do believe the answer is yes, but more so I am frustrated that the relation between the two parameters seems to be nowhere described explicitely so I do it here. (I hope ...
2
votes
0answers
58 views

I've been trying to wrap my head around the use of eigenvalues in cluster analysis. What does it tell me about my clustering behavior?

In a typical hierarchical cluster output from using SAS, the first table given lists all of the eigenvalues. From what I understand, eigenvalues are derived from covariance between the variables. ...
1
vote
1answer
172 views

Convert SAS Logistic Regression to R

Here's my issue of the day: At the moment I'm teaching myself Econometrics and making use of logistic regression. I have some SAS code and I want to be sure I understand it well first before trying ...
1
vote
1answer
111 views

PROC LOGISTIC, GENMOD

How can I get the standard error for odds ratios. I know how to obtain ORs, either by exp the estimate or by using LSMEANS or SLICE statements. Unfortunately wasnt able to find the options to have ...
0
votes
0answers
143 views

Time-varying VAR model using Kalman filter and then impulse response function

I wish to build a Time-Varying VAR model in state space form using Kalman filter and then I want to build impulse response function for the model. Can anybody guide me any clear example with codes. I ...