Displaying 1 result from an estimated 1 matches for "intweibullmil".
2011 Jan 20
0
Writing functions. please help
...gr,t,100)
+ return(calc)}
3-All the functions above are working perfectly, but when i try to put
everything together trough this code and call the function, appears a error
message:
> FUNC=function(f1,f2,f3,f4,t){
+ a=f1(t); b=f2(t); c=f3(t); d=f4(t)
+ calc=(a+b)/(c+d)
+ return(calc)}
>FUNC(intWeibullmil,intWeibullcem,intTweibull,intTweibull2,3) # t=3 is just
an example
Error in a+b: non numeric argument to binary operator
which I don't understand, becouse in previous examples I used the same
programming intuition and it worked,for example:
> f1=function(x){
+ calc=2*x
+ return(calc)}
>...