Skip to content
Prev 302700 / 398503 Next

help to program my function

Hi

Maybe it is time for you to read some basic stuff like R intro. It seems 
to me that you expect R to behave like some other language you know but 
probably your expectation is wrong.

See inline
where do you get beta
64 76
15
8
23 24
48 49
73 74
As somebody already mentioned i is probably vector and in this case only 
first value is taken. i seems to have the firs value 3.
Here j is vector of 8 values therefore 8 values
-1920
-2048
-2176
-2176
-2304
-2432
Strange, here first value of i seems to be 1 as n shall be 76 and final e2 
length is 76.
4.313746e+192
I do not understand. Your numer is 9.5 repeted 8 times. If you divide it 
by one number you will get nine times the same number.

You send us a code but no data so it is difficult to understand what is 
your goal. It would be better to send input data

j, i, X, z, E, beta0, beta1

and assumed result in whole not in chunks scattered in several mails.

Regards
Petr
http://www.R-project.org/posting-guide.html