Message-ID: <CANVHAvaPOro2SysAiRYM8gnQoMA4M54Tt_Y7R2SHY3o=-idh=g@mail.gmail.com>
Date: 2016-07-09T08:52:51Z
From: stn021
Subject: Regression with factors ?
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:
y x1 x2
0.96 Alice Bob
0.84 Alice Charlie
0.96 Bob Charlie
0.64 Dave Alice
etc.
Each person has a numerical value. Here for example Alice = 0.2 and Bob =
0.4
Then y = 0.96 = 1* ( 1- ( 0.2-0.4 ) ^ 2 ) , see first observation.
How can this be done in R ?
THX , stn
[[alternative HTML version deleted]]