02-06-2016
katie80
Fluorite | Level 6
Member since
10-05-2015
- 11 Posts
- 0 Likes Given
- 1 Solutions
- 0 Likes Received
-
Latest posts by katie80
Subject Views Posted 2622 02-05-2016 02:58 PM 1672 02-01-2016 05:02 PM 1696 02-01-2016 04:21 PM 2647 01-30-2016 03:01 PM 2654 01-30-2016 02:30 PM 1243 11-17-2015 05:30 PM 1526 11-17-2015 05:20 PM 1125 11-17-2015 05:10 PM 1257 11-17-2015 05:06 PM 1212 10-05-2015 10:59 AM -
Activity Feed for katie80
- Posted Re: Random-effects Tobit model on SAS Forecasting and Econometrics. 02-05-2016 02:58 PM
- Posted Re: Decoding letters into numbers on SAS Procedures. 02-01-2016 05:02 PM
- Posted Decoding letters into numbers on SAS Procedures. 02-01-2016 04:21 PM
- Posted Re: Random-effects Tobit model on SAS Forecasting and Econometrics. 01-30-2016 03:01 PM
- Posted Random-effects Tobit model on SAS Forecasting and Econometrics. 01-30-2016 02:30 PM
- Posted Re: Data Manipulation on SAS Data Management. 11-17-2015 05:30 PM
- Posted Re: Data Manipulation on SAS Data Management. 11-17-2015 05:20 PM
- Posted Data Manipulation-calculating lagged standard deviations on SAS Data Management. 11-17-2015 05:10 PM
- Posted Data Manipulation on SAS Data Management. 11-17-2015 05:06 PM
- Posted Re: Data Manipulation on SAS Data Management. 10-05-2015 10:59 AM
- Posted Data Manipulation on SAS Data Management. 10-05-2015 10:50 AM
02-05-2016
02:58 PM
By the way, if anyone else working with RETobit, I would look at the first link, the code in the second link has some errors.
... View more
02-01-2016
04:21 PM
I have a variable that is a random combination of letters and numbers and I want to convert it into numbers to give each combination an id number. What I have looks like this:
raw
0004BG
0004BG
0004BG
0004BG
G45700
G45700
L43709
L43709
L43709
...
What I want is:
id
1
1
1
1
2
2
3
3
3
...
What is the easiest way to do this?
Thank you!
... View more
01-30-2016
03:01 PM
I have already seen those pages and honestly they are not helpful. The code predefines the parameters that I am interested in.
... View more
01-30-2016
02:30 PM
I am starting to think there is no way to run a random-effects Tobit in SAS. Am I wrong? Please tell me I am wrong.
... View more
11-17-2015
05:30 PM
Any change you could help me with this question as well?
https://communities.sas.com/t5/SAS-Data-Management/Data-Manipulation-calculating-lagged-standard-deviations/td-p/235146
... View more
11-17-2015
05:10 PM
Hi,
I have the following variables in columns B through E. I want to create variables in columns F and G.
Basically, I want to look at the standard deviation of past prices and returns for each id without including the current price and return.
Is there a way to do this? Thanks!!!
A
B
C
D
E
F
G
2
id
date
price
return
sd(price)
sd(return)
3
1a
2014
101
5
1.25
1.57
1.25= standard deviation of (D4: D8)
1.57= standard deviation of (E4: E8)
4
1a
2013
102
4
1.22
1.75
1.22= standard deviation of (D5: D8)
1.75= standard deviation of (E5: E8)
5
1a
2012
99.5
5.5
1.26
2.08
1.26= standard deviation of (D6: D8)
2.08= standard deviation of (E6: E8)
6
1a
2011
101
3
1.77
2.12
1.77= standard deviation of (D7: D8)
2.12= standard deviation of (E7: E8)
7
1a
2010
102
7
-
-
missing since standard deviation cannot be calculated with one obs
8
1a
2009
99.5
4
-
-
missing since standard deviation cannot be calculated with zero obs
9
1b
2014
101
5.5
1.25
1.52
1.25= standard deviation of (D10: D14)
1.57= standard deviation of (E4: E14)
10
1b
2013
102
3
1.22
1.41
1.22= standard deviation of (D11: D14)
1.75= standard deviation of (E11: E14)
11
1b
2012
99.5
7
1.26
0.58
1.26= standard deviation of (D12: D14)
2.08= standard deviation of (E12: E14)
12
1b
2011
101
4
1.77
0.71
1.77= standard deviation of (D13:D14)
2.12= standard deviation of (E13: E14)
13
1b
2010
102
5
-
-
missing since standard deviation cannot be calculated with one obs
14
1b
2009
99.5
4
-
-
missing since standard deviation cannot be calculated with zero obs
... View more
11-17-2015
05:06 PM
Hi,
I have a character variable with length of 9 that starts with 6 digits followed by two letters and ending in one digit: 000000LL0.
I want to get rid of the last digit so that my new variable is of length 8 wihout the last digit, so convert var1 to var2:
var1
var2
000369AM0
000369AM
000369AM2
000369AM
000369AM7
000369AM
000369AM3
000369AM
700369AD1
700369AD
700369AD5
700369AD
What is the easiest way to do this?
Thanks !!!
... View more
10-05-2015
10:50 AM
HI, I have a large database that needs to be manipulated. I want to convert the data that looks like this: id date1 date2 var1 var2 1 2005 2008 5 3 2 2006 2008 1 2 to something that looks like this: id date1 date2 date3 var1 var2 1 2005 2008 2005 5 3 1 2005 2008 2006 5 3 1 2005 2008 2007 5 3 1 2005 2008 2008 5 3 2 2006 2008 2006 1 2 2 2006 2008 2007 1 2 2 2006 2008 2008 1 2 Basically, I want to convert each observation into id-years. what is the best and most efficient way to do this? Thanks!
... View more