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
9 views

How can I use Decision Tree node in SAS to choose variables for logit regression? [on hold]

For instance, do I put all the variables into one decision tree, or do I create a number of decision trees for groups of variables? If latter, how do I choose such groups?
1
vote
1answer
23 views

Sample size for CI precision

I am interested in calculating the required sample size to achieve some precision using a CI for the mean. Let's say that I wish to build a 95% CI for the mean, so that the difference between the ...
0
votes
1answer
12 views

SAS Residual White Noise Test and validity of R^2 value

I have fit an auto-regressive model to a data series. The model seems to explain the given data relatively well given that the total R^2 is 0.95. However, SAS has a diagnostic plot called white noise ...
0
votes
0answers
4 views

how to use SAS to shift cells (to get rid of empty cells) [on hold]

Hi I have some questions about data cleaning. A B C E F 1 2 1 2 4 3 1 6 2 But I don't want the empty cells and would like to shift the cells from left ...
0
votes
0answers
10 views

Axes having different scales on a q q plot

I was trying to learn linear regression in SAS using this example When I came to the part about the q-q plot: ...
0
votes
1answer
14 views

How SAS handles missing values while fitting linear regression model

While fitting a linear regression model in SAS, if the dataset has missing values (either missing y, or missing x or both), will SAS just ignore the records that have at least one missing value(y,x)? ...
0
votes
0answers
14 views

How to interpret the student t statistic in a sas proc univariate output [duplicate]

I ran a proc univariate on a SAS data set and one of the output results was: ...
0
votes
0answers
23 views

Seasonal adjustment for daily/weekly data [closed]

I have daily sales data which display strong weekly seasonality as well as monthly seasonality. It means that there are spikes/dips at the end of each week and greater spikes at the end of each month. ...
0
votes
1answer
26 views

Multi-class logistic Generalized Additive Models [closed]

I am looking for a package for three-class logit and probit GAM. I have searched and found out that ZeligGAM in R works for this but it seems that it is only applied to binary dependent variables. In ...
0
votes
0answers
8 views

in SAS, adding a within treatment effect to a glm

I'm trying to add a within treatment effect to my model so I can run it in SAS, proc glmselect, but I'm not sure where to put it. My treatment is a silvicultural treatment or no treatment (treatment ...
0
votes
0answers
19 views

SAS Proc ARIMA: How to interpret ADF test with several lags

I've been trying to examine the stationarity of variables in a model and from my research have seen a lot of people recommending the approach of ADF testing with several lags. However I am not ...
1
vote
1answer
33 views

X12 for seasonality adjustment - SAS

I found this code online and I wanted to dissect it before programming something similar in SAS. The problem is idenitfy seasonality in a time series. I want to understand the code line by line: ...
0
votes
0answers
6 views

How to modify the default plot in SAS [migrated]

I am using proc transreg (splines and knots) to generate a spline regression fit. It is similar to this plot from the SAS user guide: The SAS code used to ...
1
vote
0answers
26 views

Difference in SAS's proc mixed and R's lme4 (Standard Errors/Covariance Structure)

I'm trying to replicate a model created in SAS using lme4 in R. The SAS Model im using is; ...
0
votes
0answers
20 views

Lasso Regression in SAS

I tried running the LASSO regression in SAS using the glmselect procedure. I started off with a set of 2000 variables and ended up with 37 after running the code. However, I feel that the final 37 ...
0
votes
0answers
35 views

What statistical test should I use for binary data?

I am a slightly complex dataset, so I'll describe, I looked at medical visits from 2013 to 2014 and compared them to medical visits from 2013 - 2014. I documented each visit as a unique encounter. ...
1
vote
0answers
58 views

EFA - ML Eigenvalue estimates in SAS

I am conducting an EFA (exploratory factor analysis) in SAS using maximum likelihood estimation (ML). I am trying to understand the eigenvalues output and how they should be used in interpreting the ...
0
votes
0answers
7 views

Comparing LOESS with PBSpline

Penalized B-Splines and Loess both allow creating a continuous function from your data. In many cases they are quite similar, but sometimes they differ significantly, for instance for the below ...
0
votes
0answers
33 views

Meta Analysis for one proportion

I have data summarizing proportion of events from 5 different papers. The proportions are in %'s. For example, in paper number 1, there was a report of 2000 people and a proportion of 10%. I want a ...
1
vote
0answers
32 views

Correlation between different types of variables

I am running a logistic regression on a data set containing Continuous, Ordinal, Categorical and Dichotomic variables. I would like to know how to calculate the correlation for all possible ...
3
votes
0answers
44 views

Formatting R output to mimic Stata or SPSS or SAS output [closed]

It has been my experience that different academic fields have converged to different statistical software apps as their "standard." E.g., in Economics Stata is very common but virtually unheard of in ...
0
votes
0answers
16 views

Determinin fixed effects' contribution to variation with ANOVA results

I have performed an ANOVA (Linear model in SAS EG) to determine the role of country, farm, sex and year-season on performances of pigs and ran pair-wise bonferroni tests on country, farm and sex (LSM ...
0
votes
1answer
42 views

Time Series Data and SAS

I have a time series data set with 54 observations. I need to use the SAS software. I am aware that I can create a dataset in the SAS library and then open it. however i am not able to open the data ...
6
votes
1answer
197 views

Difference in output between SAS's proc genmod and R's glm

I'm trying to replicate a model fitted in SAS in R but the fit I'm getting gives me slightly different coefficients and standard errors. Data: ...
0
votes
0answers
30 views

Sample size for logistic regression with a random effect

I wish to dig out a sample size (or to do a power analysis for a given sample size) for a logistic regression model with a random effect. To simplify, let's say I have a binary dependent variable Y ...
0
votes
1answer
40 views

What does 'iteration limit reached without convergence' mean in SAS Proc PLS

I receive the warning 'iteration limit reached without convergence' when using PROC PLS in SAS. What does this warning mean? I have 1,540 observations, 900 dependent variables and 600 independent ...
1
vote
0answers
42 views

marginal effect of dummy variable in tobit model

I have a tobit regression model in hand and I want to calculate the marginal effects at means for the dummy variables in the reg equation. There are two dummy variables in the regression equation and ...
1
vote
0answers
27 views

What is expected count formula for zero-inflated negative binomial regression?

My IT department wants me to translate my zero-inflated negative binomial regression model into a formula for calculating expected count which they can hard code into SQL. I'm running the model in ...
0
votes
1answer
19 views

How to analyze generated components from partial least squares in SAS

I am using PROC PLS in SAS with multiple independent variables and multiple dependent variables. I would like to know how my independent variables are contributing to the scores for the first couple ...
1
vote
1answer
75 views

How to solve a problem with different results in SAS and R due to a number representation issue

I have a huge dataset in SAS and I'm trying to reproduce it in R. I will focus on just a single column with BMI score. In SAS, this is numeric column with 8.2 format. In R - it is a numeric column ...
0
votes
0answers
11 views

Computing linear predictors and standard errors for a subset of predictor variables in SAS PROC PHREG

Using SAS, I would like to use the OUTPUT statement in PROC PHREG to compute estimates and standard errors for a linear combination of predictors. Normally, one would use XBETA and STDXBETA to do ...
1
vote
2answers
70 views

Reference request for beginner in SAS

I am interested to start learning to use SAS, I have used R for some time but for me SAS is a novelty. I do not seek any material in particular, since I'm now beginning to take the first steps with ...
0
votes
0answers
9 views

Deciding the lag while testing for timeseries data stationarity

I am currently reading up on time series forecasting using ARIMA in SAS. I just began to go through what has been explained here : ...
0
votes
0answers
13 views

Coefficient with df=0 in log-binomial model

I am using log-binomial modeling in SAS to model the PR of my outcome given exposure directly since the prevalence is >10% so the OR~PR approximation doesn't hold. Most of my models have converged ...
1
vote
0answers
14 views

How to automatically add 2-way interaction terms in SAS proc hplogistic

I am trying to run a model using SAS proc hplogistic. The syntax I used is (this is just an example, the actual data set has 100 independent variable, so it's difficult to type all interaction terms ...
0
votes
0answers
25 views

Why are my random effects averaging out to zero in my Monte Carlo Simulation?

I'm using SAS to conduct a Monte Carlo simulation for a linear mixed model of the form y = Bx + Zu + e, where B and Z are design matrices for the fixed and random effects, x and u, respectively and e ...
0
votes
0answers
28 views

Proc UCM Forecast Series

I'm forecasting a data series with one time dependent variable (GDP) and one 0 1 time indicator "Flag" (0 starting at February 2014, 1 before that). When I use proc ucm with the below options, it ...
0
votes
0answers
10 views

ttest in sas with proc ttest

I have a data with GENDER=(1/0) INCOME SENIORITY=(1/0). I need to run a ttest on INCOME by GENDER for SENIORITY=1. As far as I know, the default of HO=0, which means that there is no difference ...
0
votes
0answers
22 views

Why SAS gives more denom DF in type3 test to subject level covariates than time in linear mixed models

I was working on a longitudinal data data set which had information about 59 patients and their psychological test scores measured at 5 different time intervals. I used Containment method type of ...
4
votes
0answers
75 views

What is the rationale behind the “eigenvalue > 1” criterion in factor analysis or PCA?

What is the meaning of "eigenvalue > 1" criterion? I understand what eigenvalues and eigenvectors are. This question is w.r.t. this link and this statement there: By default, VARCLUS stops ...
-1
votes
2answers
64 views

What is second eigenvalue?

I am trying to understand Proc Varclus. This page says "2.If the second eigenvalue for the cluster is greater than the specified cutoff, then the inital cluster is split into two clusters." What is ...
0
votes
0answers
35 views

Difference between PROC VARCLUS and factor analysis

I understand factor analysis and hierachical clustering well but PROC VARCLUS is new to me. I read in this paper that PROC VARCLUS is a combination of Factor analysis and Hierachical clustering. Can ...
0
votes
0answers
34 views

Mixed-effects in SAS

I am analyzing weekly data on 50 products which were sold in a number of shops during one year. My goal is to estimate a mixed-effects model for unit sales with heterogenous AR(1) error structure. ...
0
votes
1answer
26 views

Creating heterogeneous risk score groups (risk based groups on the score)

I just built a credit risk score model (using logistic regression). Now that I have all estimates and resulting score per observation I would like to create risk groups, e.g.: 10 risk groups where 1 ...
0
votes
1answer
35 views

Books on using SAS to analyze market risk

Is there a book that teaches you how to use SAS to analyze the market risk of a portfolio of stocks,bonds and options?
0
votes
1answer
62 views

Difference between SAS and R results - Nonlinear Regression

Hoping someone can assist with this rather niche question. I have a routine built in R for analysing depreciation curves, which is fit according to a logistic model with an additional additive ...
0
votes
3answers
49 views

How a statistical package like SAS analyses market risk without any calculus support

SAS is a very popular tool to analyze the market risks of a portfolio of stocks,bonds including non linear components like options. Assuming that option analysis uses advanced calculus and even stock ...
0
votes
0answers
44 views

Estimate UCM Equation from Ucm model?

Given the output of a ucm sas procedure i need to estimate the equations from the given output , but i don't really know how to do it or where to start. Do you have any hints or anything that might ...
0
votes
0answers
48 views

Categorical (5 categories) vs. continuous interaction logistic regression

Apologies if this is comes across as basic - I'm learning logistic regression using SAS while completing md/mph and don't have a lot of stats background. My response variable is dichotomous (1 = EMS ...
1
vote
0answers
22 views

Getting LS means of the response from logistic regression in SAS

So, I know this is more of a programming question than a stats question, but I thought I might try here anyway. I have a logistic regression model with a combination of categorical and continuous ...