myfit.prof: myfit.prof

Description Usage Arguments Value Examples

View source: R/ProLikFun.r

Description

this function is aiming at estimates the LBC model parameter

Usage

1
myfit.prof(Predictor, Outcome)

Arguments

Predictor

predictor in the model

Outcome

response in the model

Value

beta0, beta1, lambda, iteration

calculate the beta0, beta1, lambda, iteration in LBC model

Examples

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

LBC documentation built on Nov. 15, 2021, 9:07 a.m.