Skip to content

Commit e529b80

Browse files
committed
two PACE functions added
1 parent 5a062bd commit e529b80

File tree

7 files changed

+6
-6
lines changed

7 files changed

+6
-6
lines changed

.DS_Store

0 Bytes
Binary file not shown.

DESCRIPTION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
Package: fda
2-
Version: 5.5.2
2+
Version: 6.0.0
33
Date: 2022-04-19
44
Title: Functional Data Analysis
55
Author: J. O. Ramsay <ramsay@psych.mcgill.ca> [aut,cre],

R/CSTRfn.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -691,7 +691,7 @@ CSTRfn <- function(parvec, datstruct, fitstruct,
691691

692692
# DcDtheta <- D2GDc2\D2GDc
693693
DcDtheta <- try(solve(D2GDc2, D2GDc))
694-
if(class(DcDtheta)=="try-error"){
694+
if(inherits(DcDtheta,"try-error")) {
695695
#
696696
D2GDc2.eig <- eigen(D2GDc2, symmetric=TRUE)
697697
Dc.ev <- D2GDc2.eig$values

R/basisfd.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ basisfd <- function(type, rangeval, nbasis, params, dropind=vector("list",0),
146146

147147
# if first argument is a basis object, return
148148

149-
if (class(type)=="basisfd"){
149+
if (inherits(type,"basisfd")) {
150150
basisobj <- type
151151
return(basisobj)
152152
}

R/pcaPACE.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ pcaPACE <- function(covestimate, nharm = 2, harmfdPar=NULL, cross = TRUE)
4444

4545
# set up cross product and penalty matrices
4646

47-
if(class(covestimate$cov.estimate) == "bifd"){
47+
if(inherits(covestimate$cov.estimate, "bifd")) {
4848
Wmat = covestimate$cov.estimate$coefs
4949
nvar = 1
5050
basisobj = covestimate$cov.estimate$sbasis

R/scoresPACE.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ scoresPACE <- function(data, time, covestimate, PC){
1313
phi = lapply(indexes, function(x) eval.fd(x,PC$harmonics))
1414

1515

16-
if(class(covestimate$cov.estimate) == "bifd"){
16+
if(inherits(covestimate$cov.estimate, "bifd")) {
1717
nvar = 1
1818
mean.point = matrix(eval.fd(time, covestimate$meanfd),nrow = nrow(eval.fd(time, covestimate$meanfd)),ncol = nvar)
1919
data.var.mat = (apply(datamat,2, function(x) x - mean.point))^2 #data given as matrix

man/fRegress.Rd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@ fRegress(y, ...)
240240
\item{Cmatinv:} {A matrix containing the inverse of the coefficient matrix for
241241
the linear equations that define the solution to the regression
242242
problem. This matrix is required for function
243-
\code{\link{fRegress.stderr}} that estimates confidence regions
243+
\code{fRegress.stderr} that estimates confidence regions
244244
for the regression coefficient function estimates.}
245245
\item{wt:} {The vector of weights input or inferred.}
246246

0 commit comments

Comments
 (0)