Hello,
I want only the value of Beta so the statement Power-1-Beta[1] works right.
How to do? See code below
Beta - integrate(dnorm,mean=0,sd=1, 2.3552,Inf)
Power- 1-Beta[1]
Sincerely,
Mary A. Marion
__
R-help@r-project.org mailing list
Hi Mary,
You're really close, the issue is that you have a list, not a vector
(see the documentation for ?integrate). So, you need to use:
1 - Beta[[1]]
or (again relying on the documentation), you could also use $ and call
it by name:
1 - Beta$value
Cheers,
Josh
On Sat, Nov 20, 2010 at
2 matches
Mail list logo