
Last chance! 50% off unlimited learning
Sale ends in
mht
objectmht
object for a new observation Ynew"refit"(object,Ynew,var_nonselect,sigma,maxordre,ordre,m,show,IT,...)
dyadiqueordre
, "pval" uses the p-values obtained with a regression on the full set of variables (only when palpha
.alpha
.alpha
.alpha
.maxordre
variable.alpha
.maxq
is not a parameter of refit.mht
as the same number of alternative is neccessary for a refit of the model.
For more details, see mht
.
## Not run:
# x=matrix(rnorm(100*20),100,20)
# beta=c(rep(2,5),rep(0,15))
# y=x%*%beta+rnorm(100)
# ynew=x%*%beta+rnorm(100)
#
# # mht
# mod=mht(x,y,alpha=c(0.1,0.05),maxordre=15)
#
# # refit mht on a new vector of observation
# mod2=refit(mod,ynew,maxordre=15)
# ## End(Not run)
Run the code above in your browser using DataLab