Skip to content

Commit 2df5ebd

Browse files
committed
Did Jim make changes that I failed to pull?
Merge branch 'master' of github.com:JamesRamsay5/fda ranch 'master' of github.com:JamesRamsay5/fda
2 parents c5c20bc + feabe92 commit 2df5ebd

File tree

3 files changed

+22
-22
lines changed

3 files changed

+22
-22
lines changed

.Rhistory

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,3 @@
1-
betabasis2 <- create.fourier.basis(c(0, 365), nbetabasis)
2-
betafd2 <- fd(matrix(0,nbetabasis,1), betabasis2)
3-
lambda <- 10^12.5
4-
harmaccelLfd365 <- vec2Lfd(c(0,(2*pi/365)^2,0), c(0, 365))
5-
betafdPar2 <- fdPar(betafd2, harmaccelLfd365, lambda)
6-
betalist[[2]] <- betafdPar2
7-
F.res2 = Fperm.fd(annualprec, xfdlist, betalist, nperm=10)
81
Knots <- growth$age
92
norder <- 6
103
nbasis <- length(Knots) + norder - 2
@@ -510,3 +503,10 @@ q()
510503
q()
511504
q()
512505
setwd("fda_work/fda")
506+
library(Data2LD)
507+
class(temp)
508+
temp
509+
q()
510+
q()
511+
getwd()
512+
q()

R/fRegress.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ fRegress <- function(y, ...) {
55
# ---------------------------------------------------------------
66

77
#fRegress
8-
fRegressCommentFn <-
8+
fRegress <-
99
function(y, xfdlist, betalist, wt=NULL,
1010
y2cMap=NULL, SigmaE=NULL, returnMatrix=FALSE){
1111

@@ -67,7 +67,7 @@ fRegressCommentFn <-
6767
# as predict(fRegressList). In this call fRegressList can be any object of the
6868
# "fRegress".
6969

70-
# Last modified 7 August 2020 by Jim Ramsay
70+
# Last modified 11 August 2020 by Jim Ramsay
7171

7272
arglist <- fRegressArgCheck(y, xfdlist, betalist, wt)
7373

R/fRegress.numeric.R

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -36,25 +36,25 @@ fRegress.numeric <- function(y, xfdlist, betalist, wt=NULL,
3636
# supplied, confidence limits are computed, otherwise not.
3737
# SIGMAE ... Estimate of the covariances among the residuals. This
3838
# can only be estimated after a preliminary analysis
39-
# with FREGRESS.
39+
# with .
4040
# RETURNMATRIX ... If False, a matrix in sparse storage model can be returned
4141
# from a call to function BsplineS. See this function for
4242
# enabling this option.
4343
#
44-
# Returns FREGRESSLIST ... A list containing seven members with names:
45-
# yfdPar ... first argument of FREGRESS
46-
# xfdlist ... second argument of FREGRESS
47-
# betalist ... third argument of FREGRESS
44+
# Returns LIST ... A list containing seven members with names:
45+
# yfdPar ... first argument of
46+
# xfdlist ... second argument of
47+
# betalist ... third argument of
4848
# betaestlist ... estimated regression functions
4949
# yhatfdobj ... functional data object containing fitted functions
5050
# Cmatinv ... inverse of the coefficient matrix, needed for
51-
# function FREGRESS.STDERR that computes standard errors
51+
# function .STDERR that computes standard errors
5252
# wt ... weights for observations
5353
# df ... degrees of freedom for fit
54-
# This list object is converted to a class with the name "fRegress"
55-
# function predict.fRegress is an example of a method that can be called simply
56-
# as predict(fRegressList). In this call fRegressList can be any object of the
57-
# "fRegress".
54+
# This list object is converted to a class with the name ""
55+
# function predict. is an example of a method that can be called simply
56+
# as predict(List). In this call List can be any object of the
57+
# "".
5858

5959
# Last modified 3 July 2020 by Jim Ramsay
6060

@@ -411,7 +411,7 @@ fRegress.numeric <- function(y, xfdlist, betalist, wt=NULL,
411411
# Set up output list object
412412
# -------------------------------------------------------------------
413413

414-
fRegressList <-
414+
List <-
415415
list(yfdPar = yfdPar,
416416
xfdlist = xfdlist,
417417
betalist = betalist,
@@ -617,7 +617,7 @@ fRegress.numeric <- function(y, xfdlist, betalist, wt=NULL,
617617
# Set up output list object
618618
# -----------------------------------------------------------------------
619619

620-
fRegressList <-
620+
List <-
621621
list(yfdPar = yfdPar,
622622
xfdlist = xfdlist,
623623
betalist = betalist,
@@ -630,7 +630,7 @@ fRegress.numeric <- function(y, xfdlist, betalist, wt=NULL,
630630
gcv = GCV)
631631
}
632632

633-
class(fRegressList) <- "fRegress"
633+
class(List) <- "fRegress"
634634

635635
return(fRegressList)
636636

0 commit comments

Comments
 (0)