[R] Pasting a large chunk of R code in terminals

2015-10-29 Thread Victor Tian
Hi there, Often times, I would run R in the terminal when the task is computationally intensive and a nice-looking UI is less desired. However, pasting a large chunk of code into the terminal often times ends up being messed up. In Python, the same problem would happen, however, iPython provides

Re: [R] Pasting a large chunk of R code in terminals

2015-10-29 Thread Victor Tian
> Sent from my phone. Please excuse my brevity. > > On October 29, 2015 8:16:17 AM MST, Victor Tian <tianx...@gmail.com> > wrote: > >Hi there, > > > >Often times, I would run R in the terminal when the task

Re: [R] Pasting a large chunk of R code in terminals

2015-10-29 Thread Victor Tian
mporary file > that is 'sourced' in. > > > Jim Holtman > Data Munger Guru > > What is the problem that you are trying to solve? > Tell me what you want to do, not how you want to do it. > > On Thu, Oct 29, 2015 at 2:13 PM, Victor Tian <tianx...@gmail.com> wrote: > >&

Re: [R] Linear regression with a rounded response variable

2015-10-21 Thread Victor Tian
Hi Ravi, Thanks for this interesting question. My thoughts are given below. If you believe the rounding is indeed uniformly distributed, then the problem is equivalent with adding a uniform random error between (-0.5, 0.5) for every observation in addition to the standard normal error, which