Skip to content

Commit b3838b0

Browse files
author
Giles Hooker
committed
bug fixes
1 parent 7e4009b commit b3838b0

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

R/fRegressArgCheck.R

+1-1
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ fRegressArgCheck <- function(yfd, xfdlist, betalist, wt=NULL) {
125125
print(paste("Matrix in XFDLIST[[",j,"]] has more than one column."))
126126
xerror = TRUE
127127
}
128-
xfdlist[[j]] <- fd(matrix(xfdj,1,N), betalist[[j]]$fd$basis)
128+
xfdlist[[j]] <- fd(matrix(xfdj,1,N), create.constant.basis(betalist[[j]]$fd$basis$rangeval))
129129
}
130130
if (!(inherits(xfdlist[[j]], "fd" ) ||
131131
inherits(xfdlist[[j]], "numeric") ||

demo/handwrit.pda.R

+4-4
Original file line numberDiff line numberDiff line change
@@ -102,13 +102,13 @@ bwtfd12 = bwtlistout[[1]][[2]][[2]]$fd
102102
bwtfd22 = bwtlistout[[2]][[2]][[2]]$fd
103103
par(mfrow=c(2,2))
104104
plot(bwtfd11)
105-
title("Weight for variable X in equation 1")
105+
title("Weight for variable DX in equation 1")
106106
plot(bwtfd21)
107-
title("Weight for variable Y in equation 1")
107+
title("Weight for variable DY in equation 1")
108108
plot(bwtfd12)
109-
title("Weight for variable X in equation 2")
109+
title("Weight for variable DX in equation 2")
110110
plot(bwtfd22)
111-
title("Weight for variable Y in equation 2")
111+
title("Weight for variable DY in equation 2")
112112

113113
# display residual functions
114114

0 commit comments

Comments
 (0)