Re: [R] Weighting data with normal distribution

2009-03-27 Thread Mark Lyman
Alice Lin gmail.com> writes: > > > I have a vector of binary data – a string of 0’s and 1’s. > I want to weight these inputs with a normal kernel centered around entry x > so it is transformed into a new vector of data that takes into account the > values of the entries around it (weighting th

[R] Weighting data with normal distribution

2009-03-27 Thread Alice Lin
I have a vector of binary data – a string of 0’s and 1’s. I want to weight these inputs with a normal kernel centered around entry x so it is transformed into a new vector of data that takes into account the values of the entries around it (weighting them more heavily if they are near). Example: