09-01-2015
VX_Xc
Calcite | Level 5
Member since
12-11-2011
- 53 Posts
- 3 Likes Given
- 0 Solutions
- 3 Likes Received
-
Latest posts by VX_Xc
Subject Views Posted 1232 03-20-2012 11:55 PM 1647 02-25-2012 11:43 PM 1207 02-22-2012 09:13 PM 1824 02-22-2012 08:44 PM 1462 02-21-2012 01:11 AM 1462 02-20-2012 02:45 PM 3495 02-16-2012 07:56 PM 1915 02-16-2012 07:34 PM 1630 02-16-2012 06:34 PM 10324 02-16-2012 06:24 PM -
Activity Feed for VX_Xc
- Got a Like for Re: from monthly dataset to quarterly. 09-01-2015 04:24 AM
- Posted How do I extract leading non zero digits? on SAS Procedures. 03-20-2012 11:55 PM
- Posted Pairing two variable values. on SAS Procedures. 02-25-2012 11:43 PM
- Posted Can SAS be hook up web service so that SAS performs real time computation? on SAS Web Report Studio. 02-22-2012 09:13 PM
- Posted Can SAS be hooked up to web server for the purposes of real time computation? on SAS Web Report Studio. 02-22-2012 08:44 PM
- Posted Proc Optmodel Help on SAS Procedures. 02-21-2012 01:11 AM
- Posted Re: Proc Optmodel Help on SAS Procedures. 02-20-2012 02:45 PM
- Liked why selection=stepwise is not one very good way to do regression? for SteveDenham. 02-17-2012 11:50 PM
- Posted Re: linear regression underestimation on Statistical Procedures. 02-16-2012 07:56 PM
- Posted why selection=stepwise is not one very good way to do regression? on Statistical Procedures. 02-16-2012 07:34 PM
- Posted How to create permanent libnames in my program on SAS Procedures. 02-16-2012 06:34 PM
- Posted Re: from monthly dataset to quarterly on SAS Procedures. 02-16-2012 06:24 PM
- Posted How to create permanent libnames in my program on SAS Procedures. 02-16-2012 03:43 PM
- Posted Re: Automatic distribution-fitting procedure. on Statistical Procedures. 02-16-2012 03:28 PM
- Posted Re: Automatic distribution-fitting procedure. on Statistical Procedures. 02-16-2012 03:06 PM
- Posted Re: Automatic distribution-fitting procedure. on Statistical Procedures. 02-16-2012 03:01 PM
- Posted Automatic distribution-fitting procedure. on Statistical Procedures. 01-28-2012 05:26 PM
- Posted Good text book on extracting data from HTML(Web) on SAS Procedures. 01-10-2012 11:05 PM
- Posted Good text book on extracting data from HTML(Web) on SAS Procedures. 01-10-2012 09:10 PM
- Posted Is there a language package in SAS? on SAS Procedures. 12-20-2011 03:50 PM
-
Posts I Liked
Subject Likes Author Latest Post 1 1 1 -
My Liked Posts
Subject Likes Posted 3 02-16-2012 06:24 PM
03-20-2012
11:55 PM
How do I extract leading non zero digits? For example for .000212 I want to extract leading digit which is 2. and for 123.933 I want to extract leading digit which is 1. How do I do this? plz help
... View more
02-25-2012
11:43 PM
Say I have a dataset below; country1 country2 transactions Korea USA 100 USA Korea 100 I would like to make a new variable with one paired value and sum transactions together, that is I want countrypair Total_trans Korea-USA 200 So that Korea USA pair is the same as USA Korea pair. I have 40 or so countries, and have to pair them like the example above. Is there anyway to do this other than having to specify each country? Thanks for your help
... View more
02-22-2012
09:13 PM
Let's say something is updated in the web. Can SAS be hooked up so that it would automatically compute values?
... View more
02-21-2012
01:11 AM
I'm still not sure what to do with your model but; I can help you with how to populate your dataset so that every state would have the same number of stores.(If you haven't already done so, sorry for the late reply.) Say you have a dataset called 'have' below; Obs store state value 1 1 1 10 2 2 1 10 3 3 1 10 4 4 1 10 5 5 1 10 6 1 2 20 7 2 2 20 8 3 2 20 proc transpose data= have out = have1; by state; run; data have2(drop = i); set have1; array c(5) col1-col5; * change 5 tonumber of columns; do i = 1 to 5; * change 5 tonumber of columns; if c(i) = . and _name_ = 'store' then c(i) = i; if c(i) = . and _name_ = 'value' then c(i) = 0; end; run; proc transpose data=have2 out = final(drop = _name_); by state; run; proc print data=final; run; Obs state store value 1 1 1 10 2 1 2 10 3 1 3 10 4 1 4 10 5 1 5 10 6 2 1 20 7 2 2 20 8 2 3 20 9 2 4 0 10 2 5 0
... View more
02-20-2012
02:45 PM
With respect to what, are we maximizing the function? B?? What's model_input(x) ?? To find the optimal price, we first need to find supply and demand function. In your example we maximize sales (assuming wrt B) which would result in B going infinitiy even with the constraint that each store in a given state has to be the same. This is due to not specifying the demand function. once you estimated supply and demand function with constraint you can use Lagrangian functions to solve the problem using PROC NLMIXED or PROC NLP. I could come up with something if you would provide a sample of your dataset.
... View more
02-16-2012
07:56 PM
Depending on the boxcox transformation you can interprete your predicted values in meaningful way. First log transformation of the regressors would result in interpreting coefficient as 1% change in a regressor results in \beta change in outcome variable. Now it depends on the transformation that was ultimately done to the outcome variable. as boxcox finds optimal power transformation you must look at at which power the outcome variable is transformed at. We just need to back transform it. for example if power transform was done at -1, and the confidence interval found for beta values are say .1 and .2 then the resulting interpretation would be that 1% change in the regressor results in change in y value by between 10 and 5 (which are inverse of .1 and .2). if power transformation was done at 1/2, then the CI for beta of 2 and 3 can be interpreted as 1% change in the regressor results in change in y value by between 4 and 9. and so on. OR I have totally misunderstood your question.
... View more
02-16-2012
07:34 PM
In stepwise regression the decisions about which variables should be included will be based upon slight differences in their semi-partial correlation. This in turn leads to the danger of over or under fitting, which may contrast with theoretical importance of a predictor. Sounds intuitively appealling to have some procedure that automatically chooses the predictors(regressors) for you, however samples are not perfect. That is the statistical procedures assume that our sample data are perfect (no measurement error, omitted variable and stuff), hence the statistical significance obtained from the procedure assuming this perfect data will be biased(wrong). We must reason and use our brains to choose which regressors should be looked at (ideally we would want some theory to base our decision). Also step-wise procedures to choose which regressors were to be included depends on what regressors we have in our dataset. So if we do not have any theory on which regressors should be looked at and just used stepwise procedure to select regressors then people will conclude differently depending on the regressors they have in their data. I tend to think about stepwise procedure to be the best procedure to choose the regressors IF we have datasets with all possible variables in the world (billions and billions of them) and have the computing power that can go through these variables at multiples of lighting speed. Which is not possible now or in our life time.
... View more
02-16-2012
06:24 PM
3 Likes
Say you have a dataset named “have” below; Obs date quantity price totalprice 1 200001 10 5 50 2 200002 10 5 50 3 200003 10 5 50 4 200004 10 5 50 5 200005 10 5 50 6 200006 10 5 50 7 200007 10 5 50 8 200008 10 5 50 9 200009 10 5 50 10 200010 10 5 50 11 200011 10 5 50 12 200012 10 5 50 13 200101 10 5 50 14 200102 10 5 50 15 200103 10 5 50 16 200104 10 5 50 17 200105 10 5 50 18 200106 10 5 50 19 200107 10 5 50 20 200108 10 5 50 21 200109 10 5 50 22 200110 10 5 50 23 200111 10 5 50 24 200112 10 5 50 data have1; set have; date1 = put(date,6.); date2 = input(date1, yymmn6.); format date2 monyy7.; quarter = qtr(date2); year = year(date2); run; proc sort data = have1; by year quarter; run; ods trace on; proc means data = have1 sum; var quantity price totalprice; class year quarter; ods output summary=out1; run; ods trace off; data havefinal (drop = Nobs VName_quantity VName_price VName_totalprice); set out1; run; ods html; proc print data = havefinal noobs; run; ods html close; year quarter quantity_Sum price_Sum totalprice_Sum 2000 1 30 15 150 2000 2 30 15 150 2000 3 30 15 150 2000 4 30 15 150 2001 1 30 15 150 2001 2 30 15 150 2001 3 30 15 150 2001 4 30 15 150 If you have country variable then just add country before year in PROC SORT and PROC MEANS.
... View more
02-16-2012
03:28 PM
Thank you. Please correct me if I'm wrong regarding AIC.
... View more
02-16-2012
03:06 PM
This is what I was looking for. sad predefined distributions are so limited. Guess I could use PROC FCMP to define distributions that are not predefined. OR... do you know any site that lists other distrtibution functions using PROC FCMP?
... View more
02-16-2012
03:01 PM
Thank you for your help. I could try PRCO GENMOD... in DIST option do you know how many distributions are available? I disagree with you regarding the use of AIC. AIC is a holistic approach to comparing different models, it can do more than comparing various models that have different covariates (it is used to compare any parametric models as it uses likelihood function). AIC is used to test models that are not nested (but of course it can be used for nested models), for example if we have totally different models not only in covariates but also in methods used to fit the model we can compare which model is a better fit by comparing AICs. As distribution functions can differ in number of parameters to estimate and as AIC also takes this in to account (-2LL + 2p), AIC and other ICs, I believe, are the best way to compare parametric models. Please correct me if I'm wrong.
... View more
01-28-2012
05:26 PM
Could anyone tell me where I could find a reference on how to automatically fit distribution function in SAS based on AIC or BIC (or Any Information Criterion). Thank you.
... View more