[R] Regression with factors ?

2016-07-09 Thread stn021
Hello, I would like to analyse a model like this: y = 1 * ( 1 - ( x1 - x2 ) ^ 2 ) x1 and x2 are not continuous variables but factors, so the observation contain the level. Its numerical value is unknown and is to be estimated with the model. The observations look like this: yx1

Re: [R] [FORGED] Regression with factors ?

2016-07-11 Thread stn021
hough, because multiple > instances of the same factor variable are present. > -- > Sent from my phone. Please excuse my brevity. > > On July 9, 2016 4:59:30 PM PDT, Rolf Turner wrote: > >On 09/07/16 20:52, stn021 wrote: > >> Hello, > >> > >> I w

Re: [R] [FORGED] Regression with factors ?

2016-07-13 Thread stn021
use > bootstrapping or your own statistical analysis (Bayesian?) of the result. > > [1] > http://stackoverflow.com/questions/5963269/how-to-make-a-great-r-reproducible-example > -- > Sent from my phone. Please excuse my brevity. > > On July 11, 2016 7:28:41 AM PDT, stn021 w

Re: [R] [FORGED] Regression with factors ?

2016-07-13 Thread stn021
> Is this what is intended? > >> observed_data$p1ab <- persons$ability[ match(observed_data$p1, persons$name) >> ] >> observed_data$p2ab <- persons$ability[ match(observed_data$p2, persons$name) >> ] Hello David, thank you for your answer. The code in my previous post was intended as an answ

Re: [R] [FORGED] Regression with factors ?

2016-07-16 Thread stn021
2016-07-13 20:09 GMT+02:00 Jeff Newmiller : > The formula interface as used in lm and nls searches for separate > coefficients for each variable.. it will take someone more clever than I to > figure out how to get the formula interface to think of two variables as > instances of one factor. > > How