Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [sas]

A proprietary cross-platform general-purpose statistical software package.

1
vote
1answer
24 views

Statistical Analysis Software [on hold]

I am a psychology student at UCF. I intend to pursue a master's degree in industrial and organizational psychology. We use SPSS in the psychology department. How prevalent is SPSS used in offices? ...
0
votes
0answers
21 views

How do I run a nonlinear regression on my data after seeing non-linearity in my residuals plot during linear regression? [on hold]

I have run a linear regression on my students' test score data and the r-squared value is high and p-value is low which would be great - except my residuals plot showed a different story. The residual ...
0
votes
0answers
10 views

Robust Regression S-estimation in python [on hold]

Is there a way to implement robust regression with S-estimation in Python? Basically, I'm trying to find python equivalent of SAS PROC ROBUSTREG (method = s).
1
vote
0answers
50 views

Can MCMC to be too computationally inefficient if you have too many random interactions?

Suppose I have a regression where the response variable is sales, and I have various drivers of sales as the independent variables. I want to build a model using MCMC but I am unsure if it is even ...
1
vote
0answers
8 views

Data points (over time) that are both spatially even and odd

I have a set of data that has both spatially even timepoints (0, 7, 14, 21, 28 days) and spatially uneven (76, 99, 103, 133 days) timepoints. These are bodyweights collected at each of these days, and ...
1
vote
1answer
48 views

PROC GENMOD Negative Binomial doesn't predict zeros

I am using PROC GENMOD with time series data, I have tried to work with Negative Binomial, Poisson, GEE and Zero Inflated Poisson, but in each case when I score my validation dataset, I am getting ...
0
votes
0answers
22 views

Testing the goodness-of-fit for the binomial distribution

As specified in the title, I'm trying to understand how to test the goodness-of-fit for the binomial distribution; to this aim, I followed what suggested in this link. Particularly, I'm investigating ...
0
votes
1answer
33 views

Standard errors of *partial* two stage least squares coefficients

Here partial 2SLS (I coined this term and found it descriptive) is the approach that SAS uses for 2SLS. Compared to "ordinary" 2SLS which in the first stage projects all explanatory variables $X$ onto ...
0
votes
1answer
19 views

Biased dependent variable on logistic regression

I am working on a logistic regression with a biased dependent variable, (only 22 observations for 0 but 222 observations for 1) on SAS program. In such case, what can I do to transform the dependent ...
0
votes
1answer
45 views

R equivalent of SAS PHREG: HAZARDRATIO

I am trying to find the equivalent of the SAS PROC PHREG: HAZARDRATIO command in R. Specifically, I want to evaluate the effect of a drug vs. placebo for different values of BMI. My SAS code is: <...
-1
votes
0answers
12 views

What statistical test would I use to compare the effect of pre-existing attitudes on post intervention scores?

Basic design: Asking people to indicate their attitude toward getting a flu shot (4 options: very negative, mostly negative, mostly positive, very positive) Then half of the people will receive ...
1
vote
1answer
28 views
2
votes
0answers
28 views

R logistic regression throwing error

I have data with 6 predictor variables and a response variable (default ). When I do a logistic regression using probit estimation, I get a result different from SAS. (the link to my data https://...
0
votes
1answer
66 views

Combining Intermittent Demand and ARIMA

I have a time series dataset, where a customer may purchase fuel one week and not purchase again for 2-3 weeks. I need to forecast when a customer is likely to purchase and how much they will spend. ...
0
votes
0answers
15 views

Large relationship dataset and network analysis summary

I have an extremely large dataset in SAS of relationships circa 11million. While attempting to put all relationships on a graph would create a great deal of noise, what I would like to do is develop ...
0
votes
1answer
27 views

How to calculate all treatment effects in SAS with ANOVA?

In a hypothetical experiment, rats are given four different treatments and the increase in their liver fat is measured. I am being tasked with computing the overall mean and the treatment effects. ...
0
votes
1answer
79 views

How to run a Two Way ANOVA in SAS? [closed]

I have a data set that looks like below. I have to find if the scores are different across the four days. I understand I need to run a Two Way ANOVA for this test. I'm quite new to SAS if anyone could ...
0
votes
0answers
12 views

how to simulate with randdirichlet in SAS

My data has 100 obs, in 4 categories, each category has 22 obs, 25 obs, 35 obs and 18 obs . I want to create a random sample for these 4 proportions with randdirichlet in sas. Is the following the ...
0
votes
0answers
6 views

Allowing cluster-level residuals to covary in Proc Glimmix

I am modeling the probability of a child being retained in kindergarten based on individual and school-level factors. The model includes random intercepts and slopes, as follows: ...
1
vote
1answer
12 views

Does it make sense to do a polynomial contrast on a continuous time variable?

I tried running a few polynomial contrasts in SAS for a continuous time variable for linear, quadratic, cubic and quartic contrasts and the F values for each were the same. When I used categorical ...
0
votes
0answers
22 views

Cumulative Incidence Plots - Weibull Model - Time Dependent Covariates

I am seeking to create a Cumulative Incidence Plot for a Weibull model with baseline and time-varying covariates. I am using SAS PROC LIFEREG to for this model but there are two issues-one of which is ...
0
votes
0answers
66 views

Difference between PROC CATMOD and PROC GENMOD for log-linear regression

I am reading "An Introduction to Categorical Data Analysis, Second Edition" by Alan Agresti. Data I am trying to fit is presented in Table 7.3 in the book. The log-linear regression by PROC GENMOD is ...
0
votes
0answers
62 views

Decision Tree with unbalanced dataset in SAS

I have a dataset with a binary target variable. This variable is highly imbalanced i.e. the # of True case is ~1% and # of False cases is ~99% The other limitation I have is that I can only use ...
0
votes
0answers
9 views

Mantel Test of Proportion : Aggregating categories different significance

I have a dataset representing for a specific marketing event editions (1 event per 1 year), the number of partecipants, and the outcome of their partecipation If In sas I use the Mantel Exact test to ...
0
votes
1answer
18 views

Can I force the direction of hazards ratio?

I am doing a survival analysis using Cox's proportional hazards model with several predictive variables. Some of the estimated hazards ratio goes in an implausible direction, which contradicts what we ...
0
votes
0answers
27 views

Events/Trials Syntax vs. Single-Trial Mixed Model - Beta-Binomial Model

I'm a touch confused about modeling an events/trials outcome when the Bernoulli trials are not independent, such as when a series of Bernoulli trials are observed from the same person. I cannot find a ...
1
vote
0answers
39 views

Confidence region for multinomial distribution with k=7 - including 5 zero values in dataset

I have a multinomial distribution with $k=7$ and an observed dataset $n_i = \{62, 35, 0, 0, 0, 0, 0\}$. While it was quite expected that $n_i = 0$ for $i \in \{3,4,...,7\}$, there was no way to ...
0
votes
1answer
41 views

Type of transformation needed for Clustering in SAS E-Miner

I'm performing a cluster analysis with a dateset that contain over 100 varibles (after imputing, replacing and eliminating correlated vars ..) Before hiting the clustering, for the transformation ...
0
votes
0answers
14 views

C&RT Rule Set missing rules?

I configured a C&RT 2-class classifier model from a dataset and then saved the results to a table that I exported to a server running SAS. I used "Generate->Rule Set" on the C&RT model to see ...
0
votes
1answer
124 views

How to Translate Sampling SAS Code into R ? [closed]

I am trying to translate a SAS sampling method into r and wondering if there is a comparable r method that I can leverage for the following SAS code. ...
0
votes
1answer
34 views

Is 3x3x2x2 ANOVA possible?

I just don’t want to look dumb suggesting it. I have 4 categorical IVs with a continuous DV. Two IVs with 3 levels and two with two levels. Am I right to start off by testing via ANOVA assuming the ...
2
votes
0answers
21 views

Cannot get Terpstra-Jonckheere to match between R and SAS

I am trying to replicate some SAS code in R, and I'm having some issues with the Terpstra-Jonckheere test. Here is my R code: ...
0
votes
0answers
7 views

Comparing two KM estimates outputs without raw data

Some raw data has gone missing, but I have the outputs of two KM curves - Both their survival estimates and patients at risk. Is there any way for me to use just the estimates to test the difference ...
0
votes
1answer
62 views

SAS proc mixed Degree of freedom

I have a dataset in this format: Factor A is a between subject factor (with 2 levels - High and Low). Factor B is a within subject factor (with 3 levels - High , Moderate and Low). I want to run a ...
2
votes
0answers
57 views

Repeated randomized 4 by 4 latin square

I have a field setup with 4 treatments in a latin sqaure setup repeated 5 times. A B D C C A B D B D C A D C A B This field setup is enclosed. The setup is ...
1
vote
0answers
46 views

Accounting for complex survey design for structural equation modeling

I am using proc calis procedure in SAS to perform structural equation modeling (SEM). I have a nationally representative survey data with person-level weights, strata and cluster variables. However, I ...
0
votes
0answers
63 views

Box-Cox Transformation on Single Variable and Interpretation of the Transformed Variable's Mean and Standard Deviation

I'm revisiting the Box-Cox transformation in one of my stats books, and I started playing around with the SAS macro %BCTRANS2 (Source: http://support.sas.com/resources/papers/proceedings12/430-2012....
1
vote
1answer
25 views

Multiple measurements within one feature

From US health insurance data, I have 300k prescriptions for an injected biologic from many patients . For each prescription there's a quantity variable, described by the data vendor as "The number ...
1
vote
0answers
26 views

Using weighted or unweighted wPCA scores in Logistic regression model-SAS

Im working on data that I should weight the data using a weight variable that I have and I want to evaluate the association of dietary pattern and obesity. So first I run Proc factor and use the "...
0
votes
1answer
134 views

SAS glimmix (poisson, ar(1)): generating fixed effects table?

I am running a mixed model in SAS using PROC glimmix, to analyze longitudinal count data (Poisson distribution, autoregressive covariance structure), and would like to produce fixed effect estimates ...
0
votes
0answers
41 views

90/10 Peak Weather Probability Demand Forecast

I'm looking into different forecast scenarios based on peak yearly weather. If I have 20 years of peak temperatures (max temperature per year), how would I come up with the max weather value that ...
0
votes
1answer
82 views

Use propensity score or logit propensity score as distance metric for control group selection?

My question is a bit of a general one (and my first on here). I'm researching different matching methods for selecting a control group in an observational study, and when checking SAS's options for ...
1
vote
0answers
17 views

interpretationInput variables ARIMA

Could anyone help me with the interpretation of the deltas: The dependent variable lnY (with y=number of calls) is differentiated 7 times, given a weekly seasonality. Independent variables: '...
0
votes
1answer
70 views

Residual Plot and QQ Plot

Is this a good residuals plot and QQ plot to verify the constant variance and normality assumption?
1
vote
1answer
188 views

Variable selection - K Fold cross-validation or Lasso regression? [duplicate]

I have a set of about 40 predictor variables for a set of 20K subjects. The outcome is a binary yes/no response, so I would like to end with a logistic regression model. My thought is to use PROC ...
0
votes
0answers
12 views

What are the characteristics of a good cluster?

I am analysing a data set using Clustering Algorithm in SAS Enterprise Miner. I have tried to change various settings to get the best results. But,I dont really know how to decide whether the model ...
0
votes
1answer
29 views

Logistic regression prediction out of boundaries in SAS

I have a big issue with my logistic regression in SAS. ...
3
votes
0answers
87 views

bias adjusted confidence interval for correlation coefficient

I stumbled across confidence intervals for $\rho$ in a statistics textbook. This was not part of the class, but I found it interesting. My textbook has a formula for this with a Fisher transformation, ...
2
votes
0answers
44 views

Insignificant “time variable” in GLM?

I'm used to GLM modelling with a time variable, eg. Month or Year, main reason being it is often used as a proxy for an immeasurable variable, or simply data you can not easily obtain, econometrically ...
0
votes
0answers
11 views

Paired Groups comparisons over 3 tests

I have data for a psychological study that follows patients across 6 sessions. The subject takes an intake test, the same test after the 3 session, and the same test again after the 6th session. Now, ...