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 >

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

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

2016-07-13 Thread stn021
you will likely have to 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, 20

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

2016-07-11 Thread stn021
to in formulas though, 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 <r.tur...@auckland.ac.nz> wrote: > >On 09/07/16 20:52, stn021 wrote: > &g

[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