getTrainCov: Extract the covariate value from the train model

Description Usage Arguments Details Value Examples

View source: R/getTrainCov.R

Description

Extract the covariate value from the train model. The values are shuffled randomly for security purpose

Usage

1
getTrainCov(flag, acov)

Arguments

flag

project flag, saved as sub path name on the server side.

acov

the covariate name

Details

Extract the covariate value from the train model. The values are shuffled randomly for security purpose

Value

Numeric vector for the covariate from the train datasetm shuffled randonly.

Examples

1
2
3
4
5
6
7
8
# This function is provided to check the data consistency of the new prediction dataset before prediction.
# The following example is to check the boxplot for the train datasets and prediction dataset

data(sc_sample)
acov="min_temp";xlab="Minimum temperature (oC)"
colnames(sc_sample@data)[which(colnames(sc_sample@data)=="tmmn")]=acov
tr_acov=getTrainCov("sc_sample",acov)
boxplot(sc_sample@data[,acov],tr_acov,names=c("Prediction","Training"),xlab=xlab)

lspatial/sptemUS documentation built on May 29, 2019, 3:42 a.m.