econometricks RSS

sharing things i learn about data manipulation, econometrics, and related tools. should it ever prove useful to you, i would love to hear how.

Archive

Mar
9th
Mon
permalink

notes to self

  • for severity, found negative correlation between location and month.
  • PD losses seem like lit - not indep. of loss/dev

Comments (View)
Mar
2nd
Mon
permalink
Comments (View)
Jan
28th
Wed
permalink
Comments (View)
Jan
26th
Mon
permalink
Comments (View)
permalink

I needed to calculate the difference between two date fields today.

cast( convert( datetime, datestring1, 101) - convert( datetime, datestring2, 101) as float )

I’m not sure what “101” does…

Comments (View)
Jan
8th
Thu
permalink

replacing newline characters in a spreadsheet

wanted to remove newline characters / carriage returns from inside of cells in a spreadsheet.

First, I needed to determine the character code of the newline character.  I pressed F2 to enter cell edit mode and selected just the newline character, copying and pasting the character into a new cell.  I used CODE() to determine the character code - it was 10.

I could then use SUBSTITUTE(<source cell>, CHAR(10), “”) to remove the newline character.

Comments (View)
Jan
7th
Wed
permalink
Comments (View)
permalink

my intentions for this blog

i intend to use this blog to record notes about things i learn at work that might be useful to others doing similar things.  i expect topics will center around accessing data (from SQL Server, Access, etc.), manipulating data (with SQL, Excel, R, etc.), analyzing data / Econometrics (with SAS, R, Excel, etc.), and sharing findings (with Excel, PowerPoint, R, etc.).

note: I do not prefer Microsoft data tools - the data I use happens to be stored with SQL Server and Access.

Comments (View)