Skip to content

Commit

Permalink
examples reduced run times, help-page updates
Browse files Browse the repository at this point in the history
  • Loading branch information
kkholst committed Dec 9, 2023
1 parent 40f0467 commit ce96f3b
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
4 changes: 3 additions & 1 deletion R/twostage.R
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ uhat <- function(p=coef(model1), model1, data=model.frame(model1), nlobj) {
##' @export
##' @param object Model object
##' @param ... Additional arguments to lower level functions
"twostage" <- function(object,...) UseMethod("twostage")
"twostage" <- function(object, ...) UseMethod("twostage")

##' Two-stage estimator (non-linear SEM)
##'
Expand Down Expand Up @@ -137,6 +137,7 @@ uhat <- function(p=coef(model1), model1, data=model.frame(model1), nlobj) {
##' plot(mm,f=pf,data=data.frame(u=seq(-2,2,length.out=100)),lwd=2)
##' }
##'
##' \donttest{ ## Reduce test timing
##' ## Splines
##' f <- function(x) cos(2*x)+x+-0.25*x^2
##' m <- lvm(x1+x2+x3~eta1, y1+y2+y3~eta2, latent=~eta1+eta2)
Expand Down Expand Up @@ -171,6 +172,7 @@ uhat <- function(p=coef(model1), model1, data=model.frame(model1), nlobj) {
##' lines(x,p1[,1],col="green",lwd=5)
##' confband(x,lower=p1[,2],upper=p1[,3],center=p1[,1], polygon=TRUE, col=Col(3,0.2))
##' }
##' } ## Reduce test timing
##'
##' \dontrun{ ## Reduce timing
##' ## Cross-validation example
Expand Down
2 changes: 2 additions & 0 deletions man/closed.testing.Rd

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

2 changes: 2 additions & 0 deletions man/twostage.lvmfit.Rd

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

0 comments on commit ce96f3b

Please sign in to comment.