
10-09-2015
ets_kps
SAS Employee
Member since
07-23-2012
- 89 Posts
- 1 Likes Given
- 6 Solutions
- 49 Likes Received
-
Latest posts by ets_kps
Subject Views Posted 1683 09-25-2015 03:12 PM 1849 08-25-2015 04:51 PM 1849 08-25-2015 04:49 PM 9664 08-25-2015 03:37 PM 9720 08-24-2015 05:29 PM 2072 08-13-2015 11:56 AM 3218 08-13-2015 11:52 AM 3384 08-12-2015 10:54 AM 3384 08-11-2015 04:46 PM 3384 08-10-2015 01:58 PM -
Activity Feed for ets_kps
- Got a Like for Re: poisson regression using sas. 04-16-2020 04:13 PM
- Got a Like for Re: Proc Similarity to cluster time series data. 04-09-2017 10:27 PM
- Posted Re: Interval option in MARKETDATA (RiskDimension) on SAS Forecasting and Econometrics. 09-25-2015 03:12 PM
- Got a Like for Re: Help needed to model the impact of a long term promotional tactic on sales. 09-01-2015 04:24 AM
- Got a Like for Re: Proc Autoreg -- autoregressive parameters assumed given. 09-01-2015 04:24 AM
- Got a Like for Re: SAS/STAT procedure to calculate before and after performance analysis?. 09-01-2015 04:24 AM
- Got a Like for Re: Predicting the rank of a candidate on a party list - Help requested. 09-01-2015 04:24 AM
- Got a Like for Re: 2-stage regression with more than 2 models. 09-01-2015 04:24 AM
- Got a Like for Re: Logistic Regression with Instrumental Variable. 09-01-2015 04:24 AM
- Got a Like for Re: Estimating a Consumption-Based Asset Pricing Model. 09-01-2015 04:24 AM
- Got a Like for Re: Implying white's (1980) correction at proc panel procedure. 09-01-2015 04:24 AM
- Got a Like for Re: Selecting the Correct Forecasting/Prediction Proc (Feb-Dec year 1, Jan-Mar year 2). 09-01-2015 04:24 AM
- Got a Like for Re: proc varmax. 09-01-2015 04:24 AM
- Got a Like for Re: Proc ESM Seasonal Model Help. 09-01-2015 04:24 AM
- Got a Like for Re: Proc Panel and Parks. 09-01-2015 04:24 AM
- Posted Re: proc panel and heteroscedasticity correction on Statistical Procedures. 08-25-2015 04:51 PM
- Posted Re: proc panel and heteroscedasticity correction on Statistical Procedures. 08-25-2015 04:49 PM
- Posted Re: PROC IMPORT from Web on SAS Procedures. 08-25-2015 03:37 PM
- Posted PROC IMPORT from Web on SAS Procedures. 08-24-2015 05:29 PM
- Posted Re: 2-stage least squares regression on Statistical Procedures. 08-13-2015 11:56 AM
-
Posts I Liked
Subject Likes Author Latest Post 1 -
My Liked Posts
Subject Likes Posted 1 08-10-2015 01:58 PM 1 06-12-2014 11:33 AM 3 03-11-2013 11:18 AM 4 11-12-2012 10:01 AM 3 11-05-2013 04:25 PM -
My Library Contributions
Subject Likes Author Latest Post 0 1
09-25-2015
03:12 PM
Hi John, I think you might have better luck if you post this to this community page. https://communities.sas.com/t5/Base-SAS-Programming/bd-p/programming While it isn't exactly a perfect option, it is probably the most visable community. Might I also suggest calling SAS tech support at 1 (919) 677-8008 This is a typical question that they would be happy to help you with.
... View more
08-25-2015
04:51 PM
I should mention though that you can access the newest version of SAS here. Try SAS® Now! Which you can use as long as you follow the License agreement. -Ken
... View more
08-25-2015
04:49 PM
Hi Sonyboy, In SAS 9.22 the most advanced heteroskedasticity SE correction is the option HCCME=4. Reference for this correction is here. SAS/ETS(R) 9.22 User's Guide There is no canned correction for autocorrelation in that version. Best of luck. -Ken
... View more
08-24-2015
05:29 PM
Ok, I need some help. I need to import this dataset to a SAS dataset and I want to use as few a lines of code as possible. I would rather not write a data step to read it it. Can i use PROC IMPORT? "https://research.stlouisfed.org/econ/mccracken/fred-databases/monthly/current.csv" Who can do it? Thanks-Ken
... View more
08-13-2015
11:56 AM
Hi Maria, Can you tell us a bit more about your "complex survey design"? We have a portfolio of "SURVEY*" procedures but none address 2sls specifically though I am sure they could be cobbled together. Ken
... View more
08-13-2015
11:52 AM
It is possible that it is due to an imbalance. You could check this by deleting a couple time obs from a cross section and then checking against my code i provided. I am afraid that if you need any more assistance, you will have to contact Tech Support and open a formal track. 1-800-727-0025 Good luck-Ken
... View more
08-12-2015
10:54 AM
alphabeta, Our apologies. I was using syntax that we introduced in a more recent version. Please try the following modifications. remove the groupid= include a id statement change countreg to TCOUNTREG For example *poisson with RE and no exposure(service) option; proc tcountreg data=two dist=poisson ; id ship; model accident=op co_65_69 co_70_74 co_75_79/ errorcomp=random /*offset=lnservice*/; run; *Poisson with RE and exposure(service); proc tcountreg data=two dist=poisson; id=ship; model accident=op co_65_69 co_70_74 co_75_79/ errorcomp=random offset=lnservice; run; I have run this vs old syntax and get the same estimates from older to newer versions. ==> it will still match Stata's coefficients. Good luck-Ken
... View more
08-11-2015
04:46 PM
I think the coefficients are different because of your use of the exposure() options. If you run the following example you will find that the SAS and Stata coefficients are exactly the same. data ships; input ship time yr_con yr_op service accident op co_65_69 co_70_74 co_75_79 weight; int=1; cards; 1 1 1 1 127 0 0 0 0 0 3 1 2 1 2 63 0 1 0 0 0 4 1 3 2 1 1095 3 0 1 0 0 4 1 4 2 2 1095 4 1 1 0 0 3 1 5 3 1 1512 6 0 0 1 0 6 1 6 3 2 3353 18 1 0 1 0 7 1 7 4 1 . . 0 0 0 1 8 1 8 4 2 2244 11 1 0 0 1 7 2 1 1 1 44882 39 0 0 0 0 4 2 2 1 2 17176 29 1 0 0 0 5 2 3 2 1 28609 58 0 1 0 0 3 2 4 2 2 20370 53 1 1 0 0 2 2 5 3 1 7064 12 0 0 1 0 3 2 6 3 2 13099 44 1 0 1 0 4 2 7 4 1 . . 0 0 0 1 6 2 8 4 2 7117 18 1 0 0 1 5 3 1 1 1 1179 1 0 0 0 0 4 3 2 1 2 552 1 1 0 0 0 3 3 3 2 1 781 0 0 1 0 0 2 3 4 2 2 676 1 1 1 0 0 1 3 5 3 1 783 6 0 0 1 0 3 3 6 3 2 1948 2 1 0 1 0 4 3 7 4 1 . . 0 0 0 1 5 3 8 4 2 274 1 1 0 0 1 3 4 1 1 1 251 0 0 0 0 0 2 4 2 1 2 105 0 1 0 0 0 1 4 3 2 1 288 0 0 1 0 0 5 4 4 2 2 192 0 1 1 0 0 5 4 5 3 1 349 2 0 0 1 0 4 4 6 3 2 1208 11 1 0 1 0 3 4 7 4 1 . . 0 0 0 1 2 4 8 4 2 2051 4 1 0 0 1 4 5 1 1 1 45 0 0 0 0 0 5 5 2 1 2 . . 1 0 0 0 6 5 3 2 1 789 7 0 1 0 0 7 5 4 2 2 437 7 1 1 0 0 8 5 5 3 1 1157 5 0 0 1 0 9 5 6 3 2 2161 12 1 0 1 0 6 5 7 4 1 . . 0 0 0 1 4 5 8 4 2 542 1 1 0 0 1 3 ; data two; set ships; lnservice = log(service); run; proc countreg data=two dist=poisson groupid=ship; model accident=op co_65_69 co_70_74 co_75_79/ errorcomp=fixed offset=lnservice; run; proc countreg data=two dist=negbin groupid=ship; model accident=op co_65_69 co_70_74 co_75_79/ errorcomp=fixed offset=lnservice; run; *poisson with RE and no exposure(service) option; proc countreg data=two dist=poisson groupid=ship; model accident=op co_65_69 co_70_74 co_75_79/ errorcomp=random /*offset=lnservice*/; run; *Poisson with RE and exposure(service); proc countreg data=two dist=poisson groupid=ship ; model accident=op co_65_69 co_70_74 co_75_79/ errorcomp=random offset=lnservice; run; proc export data=two outfile="C:\Public\two.dta"; run; /*open stata and run this use "C:\Public\two.dta", clear xtset ship *coefficients match the "Poisson with RE and no exposure(service) option" exactly xtpoisson accident op co_65_69 co_70_74 co_75_79, re estimates store re *coefficients matches the "Poisson with RE and exposure(service)" exactly xtpoisson accident op co_65_69 co_70_74 co_75_79, exposure(service) re estimates store re_wos outreg2 [re re_wos] using compare, addstat(log-like, `e(ll)')
... View more
08-10-2015
01:58 PM
1 Like
Hi alphabeta, You might want to try this. SAS/ETS(R) 14.1 User's Guide The COUNTREG procedure in ETS has panel data poisson regression which is likely similar to the Stata xtpoisson command. try proc countreg data=a groupid=id; model y = x1-x10 / errorcomp=fixed dist=poisson; run; Let me know if this helps. -Ken
... View more
08-10-2015
09:48 AM
Aleksandra, Verify for me that you are are one SAS/ETS 13.1 or higher by running proc product_status; run; and look at the output. If you are on an earlier edition then perhaps you want to give SAS Cloud Edition a shot here. SAS® Logon Manager Let me know if you have any trouble. You should be able to create an account and log on. -Ken
... View more
08-07-2015
01:56 PM
1 Like
Hi Alexandra, With the developer's help... You have the selection portion of the code correct. You need to add a third equation for the endogeneity. Try this.... proc qlim data=a; model y1 = x1 x2 z1 z2 / discrete; where z1 and z2 are instrumental variables model y2 = x1 x2 / select (y1 = 1) discrete; model x1 = x2 z1 z2; run; Now, the consistency properties of this estimator, I can't comment on, but you should be able to estimate this thing. Best-Ken
... View more
07-20-2015
01:10 PM
See this.
... View more
07-20-2015
01:04 PM
While not exactly an answer to your question, there are some really neat tools to turn graphs back into data sets. Here are a few of the tools. http://getdata-graph-digitizer.com/ xyExtract Graph Digitizer 5.1 - Free download DigitizeIt - Graph Digitizer Software. Digitize graphs, charts and math data And to get you started in SAS. http://support.sas.com/resources/papers/proceedings15/SAS1387-2015.pdf Ken
... View more
07-17-2015
01:04 PM
The short answer is that you do not have SAS/ETS installed. If you are interested in licensing that module, follow this link. How to Buy SAS Software | SAS If you are a student or using the product for human capital purposes (non revenue generating) then you can access "cloud SAS" here. SAS® Logon Manager All you need to do is sign up for an account. Best of luck-Ken
... View more