Quantcast
Channel: Statistics Help @ Talk Stats Forum - SAS
Browsing all 310 articles
Browse latest View live
↧

Why does INSET NORMALTEST display missing (a period) on my histogram?

I have a simple data set that I'm trying to make a histogram of, but using the INSET NORMALTEST command doesn't seem to work for some data. This is the code so far: Code: DATA CLINIC;   INPUT ID    $...

View Article


Add price information based on reference number to different observation

Hi I have a large dataset that includes some observatios that are identified as either E or A. Observation A and E have a common reference ID number. Observation A incudes price information whereas E...

View Article


SAS Array

Hello all, I have a question about perhaps using an array. Below is an example of a dataset I have that records sales from 5 different cities on 3 different dates. Code: data test; input city$ date...

View Article

retain or multiple by variables?

Hi! I have a situation where the data look like the following: Code: Student      Teacher    Grade John              1              15 John              2              14 John              3...

View Article

command libname doesn't work

I want to create data files in the data folder by libname course 'C:\data' but there is the following error message "Library course does not exist" The folder exists, I just don't understand why this...

View Article


frequencies for a year prior for data with dates and frequencies

I have a data set with two columns; These are the date and the frequency of surgeries on that date. Dates are only listed if the frequency of surgeries on that date was above 0. I'd like to create a...

View Article

Simulation of clusterized binary outcomes with covariates?

Hi, I am going to do some simulations regarding to the cluster randomized clinic trials with binary outcomes. I can use beta-binormial approch to simulate data and define the ICC, however, I do not...

View Article

Re-arranging SAS data

I have data in this format: Admit Gender Department Count Admitted Male A 512 Rejected Male A 313 Admitted Female A 89 Rejected Female A 19 Admitted Male B 353 Rejected Male B 207 Admitted Female B 17...

View Article


Different results from SAS Proc Mixed and SPSS Mixed

I'm running some analyses where SPSS and SAS are giving me different results (i.e., significant here, but not there). I'm attaching the output. I've mostly fiddled with the SAS syntax to match the SPSS...

View Article


proc genmod estimate statement question

hi, i run the following code to transform a categorical variable. DATA nb; SET nb; IF (numchron =0) THEN chronic = 0; IF (numchron =1) THEN chronic = 1; IF (numchron =2) or (numchron =3) or (numchron...

View Article

Reading in variables with spaces

A co-worker is going through the SAS learning module and came across something I have not been able to figure out how to read in the data 100% correct :(. Here is the data SAS gave him: data test;...

View Article

Need help creating a new column using existing column

Hi guys, I was wondering if anyone knew how to create a new variable by performing a simple mathematical operation on an existing column. I've shown the operation im trying to do in the NEW COLUMN:...

View Article

Outputting results with PROC FREQ

Hell all, I'm having difficulties with PROC FREQ and outputting the proc freq table into a separate output dataset. Some quick background on my situation: I created a model to predict an event and now...

View Article


Calculating winning/losing streaks

Hi all, just kind of a curious question about how best to program a variable that will determine a team's winning or losing streak. So for example, let's there is data stored as follows: Code: proc...

View Article

Dissertation - Need SPSS g

Hi all, new to the forums and have a question which I would appreciate help with. For an accounting research paper, I am carrying out an analysis of Earnings Management in a number of different...

View Article


SAS Saving output for ODS

SAS is always saving my graphical ODS output in the folder that the code/editor file used to create it is in. For example, I open a program and run analyses and SAS saves the output as a "***.png" file...

View Article

Help! Type1 P-value seems significant, but Type3 p-value seems INsignificant

Hello! :) Does anyone can help me finding out if this predictor is significant or insignificant? Here is my SAS code, response has two value, 0 and 1 #1) proc genmod ; class spring summer fall winter;...

View Article


SAS Base/Advanced Certification

Hello all, I'm thinking about taking the SAS Base certification exam (and then probably the advanced one after that). I have a lot of experience with SAS and use it all of the time but more for...

View Article

Image may be NSFW.
Clik here to view.

Dear Jrai and others! question on how to calculate cummulative sum for each...

Dear Jrai and others! I have minute by minute data for the stock index futures. Variables are Date, Time, Thprice(theoretic price by model), Rprcie(real trading price), rate(interest rate), maturity,...

View Article

renaming all variables in a large dataset

Hello, I have 3 large datasets with over 800 variables that I need to merge. Problem is some of the datasets have the same variable names so I need to rename all the variables in each data set prior to...

View Article
Browsing all 310 articles
Browse latest View live