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
15 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
21 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
21 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
17 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
29 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
12 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
26 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
0answers
23 views

why SAS Proc mixed random statement and repeated are producing same result (assume compound sysmetric) [duplicate]

why SAS Proc mixed random statement and repeated are producing same result (assume compound sysmetric)? random effect model Yij=u+aj+eij assume aj is the random effect for each cluster j Variance ...
1
vote
2answers
58 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 ...
0
votes
0answers
5 views

multiple if conditions within a loop in proc iml [migrated]

I am using proc iml to manipulate the dataset. I am using if statement to check two conditions if the value is -7 or -8, I wrote this code below but the if statement is giving me errors because i am ...
3
votes
1answer
28 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
22 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
7 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
9 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
11 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
25 views

Proc Mixed statement

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

Assigning a variable to an array in SAS [migrated]

I have a 1x4 matrix assigned to a variable BMI BMI = [0.09 0.16 0.42 0.39]; How do i assign this variable BMI to an array in SAS ? I tried this below , it ...
0
votes
0answers
17 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
22 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
0answers
11 views

Storing the PCT from proc gchart in a table [migrated]

I am using proc chart on a discrete variable. I am curious how to store just the percentage value (pct) from the output into a table ? I tried the gout option (gout=test1) below but it stores the ...
0
votes
1answer
44 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
111 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
38 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
44 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
21 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
29 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
44 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
27 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
28 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
17 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
39 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
48 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
45 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 ...
1
vote
0answers
22 views

unique spline for different groups in a linear model (and no spline at all for one group)

I have a problem that has puzzled me for a long time. It involves linear models and spline functions. I need to model "time since diagnosis" when some individuals never had a diagnosis. I use Poisson ...
0
votes
0answers
19 views

Predictions and confidence limits for linear terms in GAM model

I use semi-parametric models with linear and non-linear terms in SAS. I want to plot the predictions and confidence limits of the linear terms in the model. However, the output out statement and plots ...
2
votes
1answer
48 views

Interval censoring

I ran an interval censor survival curve with R, JMP and SAS. They both gave me identical graphs, but the tables differed a bit. This is the table JMP gave me. ...
0
votes
1answer
38 views

How to analyse data from different subjects?

DESIGN: I have 4 laboratory mice (= 4 subjects). My factor is a condition with 5 levels ...
0
votes
1answer
26 views
2
votes
1answer
47 views

Interpreting LASSO tables in SAS

I have been working on LASSO in SAS lately, and I'm still trying to figure out how to work with the options, but my main question for which I have not been able to find an answer on the internet so ...
0
votes
0answers
21 views

Can splines produce a plot with more than one fixed effect? If so, how can I correct for a fixed effect?

I have my statistician supervisor wanting me to plot a series of graphs using splines. On the x axis I have volume of milk, on the y axis days. Now, he says I need to "correct for age and birth ...
0
votes
0answers
28 views

standard deviation set for spline cubic regression model

I'm attaching two sets I ran in SAS, regarding spline cubic regression models. I'm new to stats and trying my best to learn but I'm stuck here. How do I get SAS to select outliers based on two or 3 ...
1
vote
1answer
66 views

What does (SAS) Enterprise Miner's “Bucket Transformation” do?

In SAS's Enterprise Miner there is a "Bucket Transformation" which from what I can tell, is a term that is unique to Enterprise Miner. It takes a continuous variable and groups it to become an ...
0
votes
0answers
54 views

How to write custom model in SAS Enterprise Miner using SAS Code Node?

I want to write a simple GAM model in SAS Enterpise Miner and then compare it with Neural Networks I made before using built-in methods. How can I do that? Of course I want to take advantage of the ...
1
vote
0answers
40 views

Model validation for multilevel logistic regrssion?

I have designed a multilevel logistic model using PROC GLIMMIX in SAS 9.3 for hierachical data based on pupil attainment where level-two is the school the pupil attends. I'm quite sure that my model ...
1
vote
1answer
33 views

step by step analysis for GDP forecast with PLS and SAS

I'm currently trying to do a forecast of GDP , although I'm new to the econometric field , with SAS and the Partial Least Square method. My question is the following: Does anyone have any articles ...
2
votes
0answers
42 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: ...
1
vote
0answers
92 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
45 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) ...