 Home
 RForge
 glmBfp: Bayesian Fractional Polynomials for GLMs
 constructNewdataMatrix: Construct the covariates matrix for new data based on an...
Construct the covariates matrix for new data based on an existing GlmBayesMfp object
Description
This is an internal function, which constructs a model matrix for new covariate data, based on the formula and scaling info in an existing GlmBayesMfp object. The matrix can then be passed to prediction functions.
Usage
1  constructNewdataMatrix(object, newdata)

Arguments
object 
a valid 
newdata 
the new covariate data as a data.frame (with the same
covariate names as in the call to 
Value
The (uncentered!) model matrix with the FP columns shifted and scaled as for the original data.
Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.
 as.data.frame.GlmBayesMfp: Convert a GlmBayesMfp object into a data frame
 boxTidwell: Box Tidwell transformation
 computeModels: Compute model information for a given list of model...
 constructNewdataMatrix: Construct the covariates matrix for new data based on an...
 convert2Mcmc: Convert samples to mcmc objects
 coxTBF: Fit Cox models using glmBayesMfp
 cppBfgs: Interface to the internal C++ optimization routine "bfgs"
 cppOptimize: Interface to the internal C++ optimization routine "optimize"
 CustomGPrior: Constructor for the custom gprior class
 CustomGPriorclass: The custom gprior class
 empiricalHpd: Construct an empirical HPD interval from samples
 evalZdensity: Evaluate the (negative log) unnormalized marginal z density...
 Extract.GlmBayesMfp: Extract method for GlmBayesMfp objects
 formula: Mark a covariate for transformation with fractional...
 fpScale: Shift and scale a covariate vector (if wished) to have...
 fpTrans: Transform formula variables
 getDesignMatrix: Construct the design matrix for a given bfp GLM model
 getFamily: Helper function for glmBayesMfp: Extracts an S3 family object
 getFpTransforms: Get the FP transforms matrix of a given covariate vector
 getGenerator: Internal helper function which gets the generator (and...
 getLogGPrior: Helper function for glmBayesMfp: Returns the normalized log g...
 getLogMargLikEstimate: Compute the ChibJeliazkov log marginal likelihood estimate...
 getMarginalZ: Construct a (smooth) marginal z density approximation from a...
 getModelCoefs: Estimate shrunken coefficients from GlmBayesMfp object for...
 getUncenteredDesignMatrix: Construct the design matrix for a given bfp GLM model
 glmBayesMfp: Bayesian model inference for fractional polynomial GLMs and...
 GlmBayesMfpSamplesclass: Class for samples from a single GlmBayesMfp model or a model...
 GlmBayesMfpSamplessubsetting: Subset method for GlmBayesMfpSamples objects
 glmBfppackage: Bayesian inference for fractional polynomial models from the...
 GPriorclass: The virtual gprior class
 HypergPrior: Constructor for the hyperg prior class
 HypergPriorclass: The hyperg prior class
 HypergPriorinitialize: Initialization method for the "HypergPrior" class
 IncInvGammaGPrior: Constructor for the incomplete inverse gamma gprior class
 IncInvGammaGPriorclass: The incomplete inverse gamma gprior class
 IncInvGammaGPriorinitialize: Initialization method for the "IncInvGammaGPrior" class
 inclusionProbs: Compute posterior inclusion probabilites based on GlmBayesMfp...
 InvGammaGPrior: Constructor for the inverse gamma gprior class
 InvGammaGPriorclass: The inverse gamma gprior class
 InvGammaGPriorinitialize: Initialization method for the "InvGammaGPrior" class
 is.bool: Predicate checking for a boolean option
 logMargLiks: Extract the log marginal likelihood estimates from a...
 logPriors: Extract the log prior values from a GlmBayesMfp object
 McmcOptions: Constructor for class McmcOptions
 McmcOptionsclass: Class for the three canonical MCMC options
 plotCurveEstimate: Function for plotting a fractional polynomial curve estimate
 posteriors: Extract posterior model probability estimates from a...
 predict.TBFcox: Prediction methods for CoxTBF objects
 predict.TBFcox.BMA: Prediction methods for CoxTBF objects for BMA models
 predict.TBFcox.sep: Prediction methods for CoxTBF objects with separate estimates
 print.GlmBayesMfp: Print a GlmBayesMfp object.
 sampleBma: Produce posterior samples from a Bayesian model average over...
 sampleGlm: Produce posterior samples from one GLM / Cox model
 sampleSize: Compute the number of samples for a given MCMC options triple
 scrHpd: Calculate an SCB from a samples matrix
 testCox: Test the Cox model computation for the TBF approach
 writeFormula: Construct a survival formula based on a glmBfp object with...