
11-21-2018
qkaiwei
Calcite | Level 5
Member since
06-23-2011
- 48 Posts
- 0 Likes Given
- 0 Solutions
- 0 Likes Received
-
Latest posts by qkaiwei
Subject Views Posted 948 11-21-2018 02:12 AM 3829 06-17-2014 12:11 PM 4195 06-12-2014 05:10 PM 1828 02-09-2014 03:22 AM 1828 01-29-2014 12:10 PM 2114 01-25-2014 11:11 PM 2750 08-02-2013 11:52 AM 2784 08-01-2013 10:26 AM 2784 07-31-2013 07:59 AM 2784 07-30-2013 01:40 AM -
Activity Feed for qkaiwei
- Posted Optmodel problem on Mathematical Optimization, Discrete-Event Simulation, and OR. 11-21-2018 02:12 AM
- Posted Re: proc glmSelect and offset variable on Statistical Procedures. 06-17-2014 12:11 PM
- Posted proc glmSelect and offset variable on Statistical Procedures. 06-12-2014 05:10 PM
- Posted Re: How to add moving average after hpfdiagnose on SAS Forecasting and Econometrics. 02-09-2014 03:22 AM
- Posted Re: How to add moving average after hpfdiagnose on SAS Forecasting and Econometrics. 01-29-2014 12:10 PM
- Posted How to add moving average after hpfdiagnose on SAS Forecasting and Econometrics. 01-25-2014 11:11 PM
- Posted Re: Path analysis node of EM 7.1 on SAS Data Science. 08-02-2013 11:52 AM
- Posted Re: Path analysis node of EM 7.1 on SAS Data Science. 08-01-2013 10:26 AM
- Posted Re: Path analysis node of EM 7.1 on SAS Data Science. 07-31-2013 07:59 AM
- Posted Re: Path analysis node of EM 7.1 on SAS Data Science. 07-30-2013 01:40 AM
- Posted Re: Path analysis node of EM 7.1 on SAS Data Science. 07-30-2013 12:58 AM
- Posted Path analysis node of EM 7.1 on SAS Data Science. 07-24-2013 12:41 AM
- Posted Re: Annotate data of proc gmap - Block statment on Graphics Programming. 05-24-2013 02:28 PM
- Posted Re: Problem of developing an Add-In on SAS Enterprise Guide. 05-24-2013 09:59 AM
- Posted Re: Problem of developing an Add-In on SAS Enterprise Guide. 05-24-2013 09:40 AM
- Posted Annotate data of proc gmap - Block statment on Graphics Programming. 05-24-2013 05:53 AM
- Posted Problem of developing an Add-In on SAS Enterprise Guide. 05-23-2013 05:39 PM
- Posted Re: Proc optmodel - Dynamic variable and objective function on Mathematical Optimization, Discrete-Event Simulation, and OR. 05-01-2013 09:30 AM
- Posted Proc optmodel - Dynamic variable and objective function on Mathematical Optimization, Discrete-Event Simulation, and OR. 05-01-2013 12:17 AM
- Posted Delete obs efficiently on SAS Programming. 03-18-2013 08:40 AM
05-24-2013
05:53 AM
I use block statment in proc gmap with an anno data, the anno can be used successfully to mark province names in choro statment, but be not suitable in block statment. Anyone who can give me an example of annotate dataset which can be used in block statment. William Que
... View more
05-23-2013
05:39 PM
When developing an Add-in for enterprise guide, and executing a stored process using obWs.LanguageService.StoredProcessService.Execute("abc.sas","") I find that, if the work library path of obWs is /sas/temp/abcde, then all datasets created by the stored process are stored in a sub-directory under the work path, such as /sas/temp/abcde/a12345/. So I can't visit them using OleDbConnection got from obWs because the work library paths of obWs and StoredProcessService are different. Any ideas? Thanks! public SAS.Shared.AddIns.ShowResult Show(System.Windows.Forms.IWin32Window Owner) { SAS.Tasks.Toolkit.SasServer obServer; SAS.IWorkspace obWs = null; string strServer = consumer.AssignedServer; consumer.Workspace(strServer); try { obWs = consumer.Workspace(strServer) as SAS.Workspace; obServer = new SAS.Tasks.Toolkit.SasServer(strServer); } catch { return SAS.Shared.AddIns.ShowResult.Canceled; } ..................... }
... View more
05-01-2013
09:30 AM
I answer it by myself. Use PROC FCMP to create some functions to solve it, the mechanism of SAS is a little different with that of MATLAB.
... View more
05-01-2013
12:17 AM
Hi all: I define 4 numeric variables: a, b, c, d and want to calculate the minimal value of objective function, and meet a problem. When interating, the a variable named flag is based on variable a, b : flag=max(a,b), and the flag variable is also involved in the objective function, for example: min f= X + a*Y * flag - ........; that means the flag variable value and the objective function will change during each interation. So how to define them in proc optmodel. Thanks!
... View more
03-18-2013
08:40 AM
I create a dataset named T with an index date, data t(index=(date)); do i=1 to 1000000; date=intnx('day','01jan2010'd,i); x=1;y=2222222;z=33333; output; end; format date yymmdd10.; run; The following two pieces of codes are to delete obs efficiently using indexes, but after submitting, I find the size of physicial file of table T don't change(perhaps called logically delete). The reason why I use the following is that they do not create a new copy of the data set and delete indexes, save time of re-creating, but if logically delete, the table size will become bigger an bigger, and the IO time will increase rapidly. How to balance? data t; modify t; if date<='01feb3050'd then remove t; run; proc sql; delete from t where date<='01feb3050'd; quit;
... View more
03-03-2013
07:58 AM
How to specify the default path of images generated by proc sgplot. thanks!
... View more
01-23-2013
09:08 AM
R language stament, and how to do it by SAS IML? b<-sample(1:9,size=3,replace=FALSE) , that means creating 1 set with 3 elements, every element is randomly selected from 1 to 9, and each element is different with the other two in the set(non-replacement sampling). Thanks!
... View more
11-01-2012
02:55 AM
We can use BASS model to predict sales of new proudcts in the future, but can any give me a suggestion how to predict sales of every products for an new dealer? Thanks!
... View more
10-08-2012
09:41 AM
Hi all: Why can't I find X-11, X-12 model in the model library of SAS Forecast server? Thanks
... View more
09-05-2012
10:36 PM
I have a table of data cleaning rules in one excel sheet, with variables: table_name, statement, like the following: table_name statement ------------------------------------ a if ..... then ..... b if birth_date=. then birth_date=input(substr(id,3,8)),yymmdd10.) The excel file will be modifed by our customer, new data cleaning rules will be added or modified into it. During the ETL process, all rules will in the xls file will be loaded and checked syntax, and then take effect by a SAS macro. The question is: for an undeclared vairable in a data set. the substr function does not give an error message showing the varible doesn't exist, but create a new one. so the above step of syntax checking will mleiss some errors. Thanks!
... View more
07-31-2012
11:38 PM
When looking though the illustration of croston's model in SAS help, the help explians the initialization of the model, that's when the starting time t=1: the level of q(1)=max[q(1), the level of q(0)], where the level of q(0) is is the final backcast level state. So please tell me what's the final backcast level state, if possible. Thanks!
... View more
07-08-2012
03:14 AM
Thanks.
... View more
07-04-2012
12:04 PM
Hi all: I have an equation, w*P=w, w means a 1*3 row vector, with unknown elements, but sum of all element is 1, P means a known 3*3 matrix, so how to calculate the w by iml? thanks!
... View more
03-14-2012
01:19 AM
Hehe, In ENGLISH environment, column's labels are almostly same as column's names, but if in Asia language environment, you know, there are so much trouble. More than 30 variables , right click one by one ?
... View more
03-13-2012
06:43 AM
I strongly recommend that a button used to switch between showing labels and showing column names should be added on the toolbar of datagridview in EG. Althougn I know the same function exists in the 'Options' panel.
... View more