Text this: R and D, patents and productivity