-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9bab406
commit 87beeea
Showing
27 changed files
with
277 additions
and
148 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,27 @@ | ||
## File Name: BIFIE.BIFIEcdata2BIFIEdata.R | ||
## File Version: 0.11 | ||
## File Version: 0.15 | ||
|
||
####################################################### | ||
# conversion of BIFIEcdata to BIFIEdata object | ||
|
||
#--- conversion of BIFIEcdata to BIFIEdata object | ||
BIFIE.BIFIEcdata2BIFIEdata <- function( bifieobj, varnames=NULL, impdata.index=NULL ) | ||
{ | ||
if ( ! bifieobj$cdata ){ | ||
stop( "You may want to use 'BIFIE.BIFIEdata2BIFIEcdata'\n") | ||
} | ||
|
||
#******** select some imputed datasets or some variables | ||
#*** select some imputed datasets or some variables | ||
bifieobj <- BIFIE.cdata.select( bifieobj=bifieobj, varnames=varnames, | ||
impdata.index=impdata.index ) | ||
|
||
#***** conversion to BIFIEdata object | ||
bifieobj$datalistM <- bifiesurvey_rcpp_bifiecdata2bifiedata( datalistM_ind=as.matrix(bifieobj$datalistM_ind), | ||
datalistM_imputed=as.matrix(bifieobj$datalistM_imputed), | ||
Nimp=bifieobj$Nimp, dat1=as.matrix(bifieobj$dat1), | ||
datalistM_impindex=as.matrix(bifieobj$datalistM_impindex) )$datalistM | ||
#*** conversion to BIFIEdata object | ||
bifieobj$datalistM <- bifiesurvey_rcpp_bifiecdata2bifiedata( | ||
datalistM_ind=as.matrix(bifieobj$datalistM_ind), | ||
datalistM_imputed=as.matrix(bifieobj$datalistM_imputed), | ||
Nimp=bifieobj$Nimp, dat1=as.matrix(bifieobj$dat1), | ||
datalistM_impindex=as.matrix(bifieobj$datalistM_impindex) )$datalistM | ||
bifieobj$cdata <- FALSE | ||
bifieobj$datalistM_imputed <- NULL | ||
bifieobj$datalistM_impindex <- NULL | ||
bifieobj$datalistM_ind <- NULL | ||
bifieobj$wgtrep <- as.matrix(bifieobj$wgtrep) | ||
return(bifieobj) | ||
} | ||
############################################################## |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.