Re: [R] Error in n * rvec : non-numeric argument to binary operator

2021-04-19 Thread Rolf Turner
On Mon, 19 Apr 2021 17:01:11 -0500 Ana Marija wrote: > Hello, > > I have this code, and when I run it: > > kbpowerf() > Error in n * rvec : non-numeric argument to binary operator > > this is the code: > > function (){ > #USER SPECIFICATION PORTION > alpha=0.05 #DESIGNATED ALPHA > g=3

[R] Error in n * rvec : non-numeric argument to binary operator

2021-04-19 Thread Ana Marija
Hello, I have this code, and when I run it: > kbpowerf() Error in n * rvec : non-numeric argument to binary operator this is the code: function (){ #USER SPECIFICATION PORTION alpha=0.05 #DESIGNATED ALPHA g=3 #NUMBER OF GROUPS nvec=c(25,10,15) #GROUP SIZES beta1vec=c(789.93,122.87,1871