search for: outcoef

Displaying 1 result from an estimated 1 matches for "outcoef".

Did you mean: nutconf
2007 May 18
1
A programming question
...obit model by changing one independent variable keeping the others constant. A simple toy example is like this Range for my variables is defined as follows y=0 or 1, x1 = -10 to 10, x2=-40 to 100, x3 = -5 to 5 Model output <- glim(y ~ x1+x2+x3 -1, family=binomial(link="probit")) outcoef <- output$coef xbeta <- as.matrix(cbind(x1, x2, x3) predprob <- pnorm(xbeta%*%outcoef) now I have the predicted probabilities for y=1 as defined above. My problem is as follows Keep X2 at 20 and X3 at 2. Then compute the predicted probability (predprob) for the entire range of X1 ie fro...