Displaying 2 results from an estimated 2 matches for "probility".
Did you mean:
probaility
2003 Jun 17
1
probability values ?
Hello
I try to find probability values of some predictor combinations using
logistic reg. in response level.
Firstly I found coefficients by glm function.
Then I followed two ways to get probability values:
1- probility <- exp(X0+bX1+cX2+...)/((1+exp(X0+bX1+cX2+...))
2- probility <- predict(glm.obj,type="resp")
Should have these two given same result ?
if so, I did not have. Why ?
Does anyone have any idea ?
thanks in advance
Ahmet Temiz
TURKEY
______________________________________
______...
2010 Sep 26
8
the function doesn´t work
hey, my function doesn?t work. can somebody help me?
the graphic doesn?t work and also the function. thnx a lot.
N=10
n=100
p_0=c(1/5,1-1/5)
power = function(p,m) {
set.seed(1000)
H=matrix(0,nrow=N,ncol=1)
for(i in 1:N) {
x <- matrix(rnorm(n, 0, 0.5), ncol = m)
y <- matrix(rnorm(n, 0, 0.8), ncol = m)
l <- diag(cor(x, y))
q_1 = qnorm(0.05, 0, 0.05)
q_2 = qnorm(1 - 0.05, 0, 0.05)