Skip to content

Commit

Permalink
last commit Flo
Browse files Browse the repository at this point in the history
  • Loading branch information
FloSchuberth committed Feb 5, 2025
1 parent 34ef5b5 commit 8b087a1
Show file tree
Hide file tree
Showing 3 changed files with 58 additions and 5 deletions.
17 changes: 12 additions & 5 deletions R/postestimate_doSpecificationSearch.R
Original file line number Diff line number Diff line change
Expand Up @@ -15,16 +15,23 @@
#' @seealso [csem()], [cSEMResults], \link[DiagrammeR]{grViz}
#'
#'
#' @example inst/examples/example_doSpecificationSearch.R
#'
#' @export


doSpecificationSearch <- function(.object = NULL){

out=list()



out[["Estimates"]]=.object$Estimates
out[[2]]=.object$Information$Model
out[[3]]=.object$Information$Data
out[[4]]=.object$Information$Arguments$.data

.object$Estimates
.object$Information$Model
.object$Information$Data
.object$Information$Arguments$.data
}
# ga(X)

out
}
22 changes: 22 additions & 0 deletions inst/examples/example_doSpecificationSearch.R
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
model_IT_Flex="
# Composite models
ITComp <~ ITCOMP1 + ITCOMP2 + ITCOMP3 + ITCOMP4
Modul <~ MOD1 + MOD2 + MOD3 + MOD4
ITConn <~ ITCONN1 + ITCONN2 + ITCONN3 + ITCONN4
ITPers <~ ITPSF1 + ITPSF2 + ITPSF3 + ITPSF4
# Saturated structural model
ITPers ~ ITComp + Modul + ITConn
Modul ~ ITComp + ITConn
ITConn ~ ITComp
"

# Estimate the model using PLS:
out <- csem(.data = ITFlex,
.model = model_IT_Flex,
.resample_method = "none")


doSpecificationSearch(out)


24 changes: 24 additions & 0 deletions man/doSpecificationSearch.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 8b087a1

Please sign in to comment.