Description Usage Arguments Value Examples
this function is aiming at estimates the LBC model parameter
1 | myfit.prof(Predictor, Outcome)
|
Predictor |
predictor in the model |
Outcome |
response in the model |
beta0, beta1, lambda, iteration
calculate the beta0, beta1, lambda, iteration in LBC model
1 2 3 4 5 6 7 8 9 | xx <- runif(100,min=0,max=1)
yy <- rbind(matrix(0,50,1),matrix(1,50,1))
myprofit <- myfit.prof(xx, yy)
init <- myprofit[1:3]
#mymle <- maxLik(logLik=LogLikeFun, grad = ScoreFun, start=init, ixx=xx, iyy=yy )
#beta0 <- mymle$estimate[1]
#beta1 <- mymle$estimate[2]
#lambda <- mymle$estimate[3]
#yy.gen <- beta0 + beta1*(xx^lambda-1)/lambda
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.