Displaying 5 results from an estimated 5 matches for "power2".
Did you mean:
power
2012 Feb 10
3
problem subsetting data frame with variable instead of constant
...s a look at my data frame called 'ea.cad.pwr':
*>ea.ca.pwr[1:5,]
MAF OR POWER
1 0.02 0.01 0.9999
2 0.02 0.02 0.9998
3 0.02 0.03 0.9997
4 0.02 0.04 0.9995
5 0.02 0.05 0.9993*
Here's my subset lines which finds no rows:
*power1 = subset(ea.cad.pwr, MAF == maf1 & OR == odds)
power2 = subset(ea.cad.pwr, MAF == maf2 & OR == odds)
*
Now when maf1 = 0.2 and odds = 1.2 it finds nothing. I know for a fact that
there's a row with these values:
*> ea.cad.pwr[1430:1432,]
MAF OR POWER
1430 0.2 0.58 0.9996
1431 0.2 1.20 0.3092
1432 0.2 1.22 0.3914*
I have code worki...
2011 May 04
1
hurdle, simulated power
...)
}
y<-y1*y2
data.frame(trt=trt,y=y)
}
#alpha0, alpha1 is the parameter for zero part
#beta0,beta1 is the parameter for negative binomial
#theta is dispersion parameter for negative binomial, infinity
correspond to poisson
#
#example power analysis
#return three power, power1 for zero part, power2 for negative binomial part
#power3 for joint test,significance level can be set, default is 0.05
#M is simulation time
#require pscl package
#library(pscl)
mypower <- function(n, beta0, beta1, alpha0, alpha1, theta,
siglevel=0.05, M=1000){
myfun <- function(n,beta0,beta1,alpha0,alpha1,thet...
2006 May 23
1
no USB/HID UPS found?
...be started anymore:
backer:~# /etc/init.d/nut stop
Stopping Network UPS Tools: (upsdrvctl failed) upsd upsmon.
* In the old configuration I was using the hidups driver, now I tried
newhidups, as well - none of them is actually able to find the UPSes
connected:
backer:~# /lib/nut/newhidups -a power2
Network UPS Tools: New USB/HID UPS driver 0.28 (2.0.3)
No matching USB/HID UPS found
backer:~# /lib/nut/newhidups -a power2
Network UPS Tools: New USB/HID UPS driver 0.28 (2.0.3)
No matching USB/HID UPS found
* trying to do some debugging (as I read earlier on that list regarding
a problem...
2007 Apr 18
1
Conditional power, predictive power
is there no package/function in R to calculate the conditional power or the
bayesian predictive power for trials with binary endpoints? Thanks
--
View this message in context: http://www.nabble.com/Conditional-power%2C-predictive-power-tf3603396.html#a10066991
Sent from the R help mailing list archive at Nabble.com.
2007 Oct 19
0
calculating power of log rank test
...1
if(d5>1.96)count5=count5+1
if(d6>1.96)count6=count6+1
if(d7>1.96)count7=count7+1
if(d8>1.96)count8=count8+1
if(d9>1.96)count9=count9+1
number=number+1
s=s-1
}
power1=count1/number
power2=count2/number
power3=count3/number
power4=count4/number
power5=count5/number
power6=count6/number
power7=count7/number
power8=count8/number
power9=count9/number
print(power1)
print(power2)
print(power3)...