Displaying 1 result from an estimated 1 matches for "iv_transf".
2011 Nov 10
3
optim seems to be finding a local minimum
...,3921.581866,4008.156537,4089.862363,4167.106955,4240.253215,4309.625263,4375.513474,4438.178766,4497.856259,4554.75841,4609.077705,4660.988983))
## Function "transformIV" transforms a data frame column "IV" using
parameters .alpha & .beta:
## It returns a data frame column IV_transf:
transformIV = function(.alpha,.beta) {
IV_transf <- as.data.frame(1 - (1/exp((IV/.beta)^.alpha)))
return(IV_transf)
}
### Function "mysum" calculates the sum of absolute residuals after a
regression with a single predictor:
mysum<- function(myIV,myDV){
regr<-lm(myDV[[1]] ~...