Description Usage Arguments Details Value Author(s) Examples
View source: R/fda.smoothdata.R
This function produces functional actigraphy data from matrix actigraphy data.
1 | fda.smoothdata(data, basistype="fourier", nbasis=9, norder=4)
|
data |
A list consisting of the following two components: |
basistype |
A string specifying either |
nbasis |
The number of basis functions to be used for functional data. Default value is 9. |
norder |
The order of the bspline basis functions. Default value is 4. |
Note: The output of function fda.matchid
can be directly used as the input for this argument.
If the data is a categorical covariate
A list consisting of two components as follows:
fd |
A |
cov |
An object that is the same as the argument |
William D. Shannon, Tao Li, Hong Xian, Jia Wang, Elena Deych, Carlos Gonzalez
1 2 3 4 5 6 7 8 9 10 11 | data(act_29pt)
data(clinic_29pt_ahi)
data <- act_29pt
ahi <- clinic_29pt_ahi
matchid <- fda.matchid(data, ahi, "contin")
FDcont <- fda.smoothdata(matchid)
### Smooth the Results
ts.plot(predict(FDcont$fd$fd, 1:1440), main="Smoothed Activity Data")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.