get.score: no visible global function definition for 'sd'
get.score: no visible global function definition for 'coef'
get.score: no visible global function definition for 'as'
get.score.main: no visible global function definition for 'sd'
get.score.main: no visible global function definition for 'coef'
get.subgroup: no visible global function definition for 'sd'
sample.tte: no visible global function definition for 'runif'
Undefined global functions or variables:
  as coef runif sd
Consider adding
  importFrom("methods", "as")
  importFrom("stats", "coef", "runif", "sd")
to your NAMESPACE file (and ensure that your DESCRIPTION Imports field
contains 'methods').
Running examples in 'MMMS-Ex.R' failed
The error most likely occurred in:

> base::assign(".ptime", proc.time(), pos = "CheckExEnv")
> ### Name: get.score.main
> ### Title: Calculation of composite scores based on a main-effect model
> ### Aliases: get.score.main
> 
> ### ** Examples
> 
>   # load the dataset
>   data(simdat)
>   attach(simdat)
>   
>   # get composite scores using a main-effect model
>   main.only=get.score.main(time,event,treat,bio,covar,nfolds=5,alpha=0.5)
Error in glmnet(x, y, weights = weights, offset = offset, lambda = lambda,  : 
  the length of penalty.factor does not match the number of variables
Calls: get.score.main -> cv.glmnet -> cv.glmnet.raw -> glmnet
Execution halted
get.score: no visible global function definition for ‘sd’
get.score: no visible global function definition for ‘coef’
get.score: no visible global function definition for ‘as’
get.score.main: no visible global function definition for ‘sd’
get.score.main: no visible global function definition for ‘coef’
get.subgroup: no visible global function definition for ‘sd’
sample.tte: no visible global function definition for ‘runif’
Undefined global functions or variables:
  as coef runif sd
Consider adding
  importFrom("methods", "as")
  importFrom("stats", "coef", "runif", "sd")
to your NAMESPACE file (and ensure that your DESCRIPTION Imports field
contains 'methods').
Running examples in ‘MMMS-Ex.R’ failed
The error most likely occurred in:

> base::assign(".ptime", proc.time(), pos = "CheckExEnv")
> ### Name: get.score.main
> ### Title: Calculation of composite scores based on a main-effect model
> ### Aliases: get.score.main
> 
> ### ** Examples
> 
>   # load the dataset
>   data(simdat)
>   attach(simdat)
>   
>   # get composite scores using a main-effect model
>   main.only=get.score.main(time,event,treat,bio,covar,nfolds=5,alpha=0.5)
Error in glmnet(x, y, weights = weights, offset = offset, lambda = lambda,  : 
  the length of penalty.factor does not match the number of variables
Calls: get.score.main -> cv.glmnet -> cv.glmnet.raw -> glmnet
Execution halted
get.score: no visible global function definition for ‘sd’
get.score: no visible global function definition for ‘coef’
get.score: no visible global function definition for ‘as’
get.score.main: no visible global function definition for ‘sd’
get.score.main: no visible global function definition for ‘coef’
get.subgroup: no visible global function definition for ‘sd’
sample.tte: no visible global function definition for ‘runif’
Undefined global functions or variables:
  as coef runif sd
Consider adding
  importFrom("methods", "as")
  importFrom("stats", "coef", "runif", "sd")
to your NAMESPACE file (and ensure that your DESCRIPTION Imports field
contains 'methods').
Running examples in ‘MMMS-Ex.R’ failed
The error most likely occurred in:

> ### Name: get.score.main
> ### Title: Calculation of composite scores based on a main-effect model
> ### Aliases: get.score.main
> 
> ### ** Examples
> 
>   # load the dataset
>   data(simdat)
>   attach(simdat)
>   
>   # get composite scores using a main-effect model
>   main.only=get.score.main(time,event,treat,bio,covar,nfolds=5,alpha=0.5)
Error in glmnet(x, y, weights = weights, offset = offset, lambda = lambda,  : 
  the length of penalty.factor does not match the number of variables
Calls: get.score.main -> cv.glmnet -> cv.glmnet.raw -> glmnet
Execution halted
get.score: no visible global function definition for ‘sd’
get.score: no visible global function definition for ‘coef’
get.score: no visible global function definition for ‘as’
get.score.main: no visible global function definition for ‘sd’
get.score.main: no visible global function definition for ‘coef’
get.subgroup: no visible global function definition for ‘sd’
sample.tte: no visible global function definition for ‘runif’
Undefined global functions or variables:
  as coef runif sd
Consider adding
  importFrom("methods", "as")
  importFrom("stats", "coef", "runif", "sd")
to your NAMESPACE file (and ensure that your DESCRIPTION Imports field
contains 'methods').
Running examples in ‘MMMS-Ex.R’ failed
The error most likely occurred in:

> ### Name: get.score.main
> ### Title: Calculation of composite scores based on a main-effect model
> ### Aliases: get.score.main
> 
> ### ** Examples
> 
>   # load the dataset
>   data(simdat)
>   attach(simdat)
>   
>   # get composite scores using a main-effect model
>   main.only=get.score.main(time,event,treat,bio,covar,nfolds=5,alpha=0.5)
Error in glmnet(x, y, weights = weights, offset = offset, lambda = lambda,  : 
  the length of penalty.factor does not match the number of variables
Calls: get.score.main -> cv.glmnet -> cv.glmnet.raw -> glmnet
Execution halted
get.score: no visible global function definition for 'sd'
get.score: no visible global function definition for 'coef'
get.score: no visible global function definition for 'as'
get.score.main: no visible global function definition for 'sd'
get.score.main: no visible global function definition for 'coef'
get.subgroup: no visible global function definition for 'sd'
sample.tte: no visible global function definition for 'runif'
Undefined global functions or variables:
  as coef runif sd
Consider adding
  importFrom("methods", "as")
  importFrom("stats", "coef", "runif", "sd")
to your NAMESPACE file (and ensure that your DESCRIPTION Imports field
contains 'methods').
Running examples in 'MMMS-Ex.R' failed
The error most likely occurred in:

> ### Name: get.score.main
> ### Title: Calculation of composite scores based on a main-effect model
> ### Aliases: get.score.main
> 
> ### ** Examples
> 
>   # load the dataset
>   data(simdat)
>   attach(simdat)
>   
>   # get composite scores using a main-effect model
>   main.only=get.score.main(time,event,treat,bio,covar,nfolds=5,alpha=0.5)
Error in glmnet(x, y, weights = weights, offset = offset, lambda = lambda,  : 
  the length of penalty.factor does not match the number of variables
Calls: get.score.main -> cv.glmnet -> cv.glmnet.raw -> glmnet
Execution halted
get.score: no visible global function definition for 'sd'
get.score: no visible global function definition for 'coef'
get.score: no visible global function definition for 'as'
get.score.main: no visible global function definition for 'sd'
get.score.main: no visible global function definition for 'coef'
get.subgroup: no visible global function definition for 'sd'
sample.tte: no visible global function definition for 'runif'
Undefined global functions or variables:
  as coef runif sd
Consider adding
  importFrom("methods", "as")
  importFrom("stats", "coef", "runif", "sd")
to your NAMESPACE file (and ensure that your DESCRIPTION Imports field
contains 'methods').
Running examples in 'MMMS-Ex.R' failed
The error most likely occurred in:

> ### Name: get.score.main
> ### Title: Calculation of composite scores based on a main-effect model
> ### Aliases: get.score.main
> 
> ### ** Examples
> 
>   # load the dataset
>   data(simdat)
>   attach(simdat)
>   
>   # get composite scores using a main-effect model
>   main.only=get.score.main(time,event,treat,bio,covar,nfolds=5,alpha=0.5)
Error in glmnet(x, y, weights = weights, offset = offset, lambda = lambda,  : 
  the length of penalty.factor does not match the number of variables
Calls: get.score.main -> cv.glmnet -> cv.glmnet.raw -> glmnet
Execution halted
get.score: no visible global function definition for ‘sd’
get.score: no visible global function definition for ‘coef’
get.score: no visible global function definition for ‘as’
get.score.main: no visible global function definition for ‘sd’
get.score.main: no visible global function definition for ‘coef’
get.subgroup: no visible global function definition for ‘sd’
sample.tte: no visible global function definition for ‘runif’
Undefined global functions or variables:
  as coef runif sd
Consider adding
  importFrom("methods", "as")
  importFrom("stats", "coef", "runif", "sd")
to your NAMESPACE file (and ensure that your DESCRIPTION Imports field
contains 'methods').
Running examples in ‘MMMS-Ex.R’ failed
The error most likely occurred in:

> base::assign(".ptime", proc.time(), pos = "CheckExEnv")
> ### Name: get.score.main
> ### Title: Calculation of composite scores based on a main-effect model
> ### Aliases: get.score.main
> 
> ### ** Examples
> 
>   # load the dataset
>   data(simdat)
>   attach(simdat)
>   
>   # get composite scores using a main-effect model
>   main.only=get.score.main(time,event,treat,bio,covar,nfolds=5,alpha=0.5)
Error in glmnet(x, y, weights = weights, offset = offset, lambda = lambda,  : 
  the length of penalty.factor does not match the number of variables
Calls: get.score.main -> cv.glmnet -> cv.glmnet.raw -> glmnet
Execution halted
get.score: no visible global function definition for ‘sd’
get.score: no visible global function definition for ‘coef’
get.score: no visible global function definition for ‘as’
get.score.main: no visible global function definition for ‘sd’
get.score.main: no visible global function definition for ‘coef’
get.subgroup: no visible global function definition for ‘sd’
sample.tte: no visible global function definition for ‘runif’
Undefined global functions or variables:
  as coef runif sd
Consider adding
  importFrom("methods", "as")
  importFrom("stats", "coef", "runif", "sd")
to your NAMESPACE file (and ensure that your DESCRIPTION Imports field
contains 'methods').
get.score: no visible global function definition for ‘sd’
get.score: no visible global function definition for ‘coef’
get.score: no visible global function definition for ‘as’
get.score.main: no visible global function definition for ‘sd’
get.score.main: no visible global function definition for ‘coef’
get.subgroup: no visible global function definition for ‘sd’
sample.tte: no visible global function definition for ‘runif’
Undefined global functions or variables:
  as coef runif sd
Consider adding
  importFrom("methods", "as")
  importFrom("stats", "coef", "runif", "sd")
to your NAMESPACE file (and ensure that your DESCRIPTION Imports field
contains 'methods').
Running examples in ‘MMMS-Ex.R’ failed
The error most likely occurred in:

> base::assign(".ptime", proc.time(), pos = "CheckExEnv")
> ### Name: get.score.main
> ### Title: Calculation of composite scores based on a main-effect model
> ### Aliases: get.score.main
> 
> ### ** Examples
> 
>   # load the dataset
>   data(simdat)
>   attach(simdat)
>   
>   # get composite scores using a main-effect model
>   main.only=get.score.main(time,event,treat,bio,covar,nfolds=5,alpha=0.5)
Error in glmnet(x, y, weights = weights, offset = offset, lambda = lambda,  : 
  the length of penalty.factor does not match the number of variables
Calls: get.score.main -> cv.glmnet -> cv.glmnet.raw -> glmnet
Execution halted
get.score: no visible global function definition for ‘sd’
get.score: no visible global function definition for ‘coef’
get.score: no visible global function definition for ‘as’
get.score.main: no visible global function definition for ‘sd’
get.score.main: no visible global function definition for ‘coef’
get.subgroup: no visible global function definition for ‘sd’
sample.tte: no visible global function definition for ‘runif’
Undefined global functions or variables:
  as coef runif sd
Consider adding
  importFrom("methods", "as")
  importFrom("stats", "coef", "runif", "sd")
to your NAMESPACE file (and ensure that your DESCRIPTION Imports field
contains 'methods').
get.score: no visible global function definition for ‘sd’
get.score: no visible global function definition for ‘coef’
get.score: no visible global function definition for ‘as’
get.score.main: no visible global function definition for ‘sd’
get.score.main: no visible global function definition for ‘coef’
get.subgroup: no visible global function definition for ‘sd’
sample.tte: no visible global function definition for ‘runif’
Undefined global functions or variables:
  as coef runif sd
Consider adding
  importFrom("methods", "as")
  importFrom("stats", "coef", "runif", "sd")
to your NAMESPACE file (and ensure that your DESCRIPTION Imports field
contains 'methods').
get.score: no visible global function definition for 'sd'
get.score: no visible global function definition for 'coef'
get.score: no visible global function definition for 'as'
get.score.main: no visible global function definition for 'sd'
get.score.main: no visible global function definition for 'coef'
get.subgroup: no visible global function definition for 'sd'
sample.tte: no visible global function definition for 'runif'
Undefined global functions or variables:
  as coef runif sd
Consider adding
  importFrom("methods", "as")
  importFrom("stats", "coef", "runif", "sd")
to your NAMESPACE file (and ensure that your DESCRIPTION Imports field
contains 'methods').
Running examples in 'MMMS-Ex.R' failed
The error most likely occurred in:

> ### Name: get.score.main
> ### Title: Calculation of composite scores based on a main-effect model
> ### Aliases: get.score.main
> 
> ### ** Examples
> 
>   # load the dataset
>   data(simdat)
>   attach(simdat)
>   
>   # get composite scores using a main-effect model
>   main.only=get.score.main(time,event,treat,bio,covar,nfolds=5,alpha=0.5)
Error in glmnet(x, y, weights = weights, offset = offset, lambda = lambda,  : 
  the length of penalty.factor does not match the number of variables
Calls: get.score.main -> cv.glmnet -> cv.glmnet.raw -> glmnet
Execution halted
get.score: no visible global function definition for ‘sd’
get.score: no visible global function definition for ‘coef’
get.score: no visible global function definition for ‘as’
get.score.main: no visible global function definition for ‘sd’
get.score.main: no visible global function definition for ‘coef’
get.subgroup: no visible global function definition for ‘sd’
sample.tte: no visible global function definition for ‘runif’
Undefined global functions or variables:
  as coef runif sd
Consider adding
  importFrom("methods", "as")
  importFrom("stats", "coef", "runif", "sd")
to your NAMESPACE file (and ensure that your DESCRIPTION Imports field
contains 'methods').
get.score: no visible global function definition for 'sd'
get.score: no visible global function definition for 'coef'
get.score: no visible global function definition for 'as'
get.score.main: no visible global function definition for 'sd'
get.score.main: no visible global function definition for 'coef'
get.subgroup: no visible global function definition for 'sd'
sample.tte: no visible global function definition for 'runif'
Undefined global functions or variables:
  as coef runif sd
Consider adding
  importFrom("methods", "as")
  importFrom("stats", "coef", "runif", "sd")
to your NAMESPACE file (and ensure that your DESCRIPTION Imports field
contains 'methods').
Running examples in 'MMMS-Ex.R' failed
The error most likely occurred in:

> ### Name: get.score.main
> ### Title: Calculation of composite scores based on a main-effect model
> ### Aliases: get.score.main
> 
> ### ** Examples
> 
>   # load the dataset
>   data(simdat)
>   attach(simdat)
>   
>   # get composite scores using a main-effect model
>   main.only=get.score.main(time,event,treat,bio,covar,nfolds=5,alpha=0.5)
Error in glmnet(x, y, weights = weights, offset = offset, lambda = lambda,  : 
  the length of penalty.factor does not match the number of variables
Calls: get.score.main -> cv.glmnet -> cv.glmnet.raw -> glmnet
Execution halted