arfit: Test for a trend in presence of autocorrelation
- Source:R/arfit.R
+ Source: R/arfit-package.R
arfit-package.Rd
Details
Evaluates likelihood
Fits likelihood
Estimates MLE for model
-Example provides
-Tools for su=imulation study
+Example provided
+Tools for simulation study
References
@@ -65,8 +65,7 @@ References
See also
- Useful links:
-Report bugs at https://github.com/andybeet/arfit/issues
+ Useful links:
Report bugs at https://github.com/andybeet/arfit/issues
diff --git a/reference/check_data_validation.html b/reference/check_data_validation.html
new file mode 100644
index 0000000..b8167c7
--- /dev/null
+++ b/reference/check_data_validation.html
@@ -0,0 +1,69 @@
+
+Checks data set for misspecification — check_data_validation • arfit
+ Skip to contents
+
+
+
+
+
+
+ Checks data set for misspecification
+ Source: R/check_data_validation.R
+ check_data_validation.Rd
+
+
+
+ Check column names, missing data, consecutive equally spaced time units
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/reference/est_beta_given_rho.html b/reference/est_beta_given_rho.html
index 14b0695..d530ad1 100644
--- a/reference/est_beta_given_rho.html
+++ b/reference/est_beta_given_rho.html
@@ -73,7 +73,7 @@ Arguments
- Site built with pkgdown 2.1.0.
+ Site built with pkgdown 2.1.1.
diff --git a/reference/example_cedar_rapids.html b/reference/example_cedar_rapids.html
index 99d6ea5..1863176 100644
--- a/reference/example_cedar_rapids.html
+++ b/reference/example_cedar_rapids.html
@@ -69,7 +69,7 @@ Arguments
- Site built with pkgdown 2.1.0.
+ Site built with pkgdown 2.1.1.
diff --git a/reference/fit_ar1_opt.html b/reference/fit_ar1_opt.html
index 2da4d0e..d6fab85 100644
--- a/reference/fit_ar1_opt.html
+++ b/reference/fit_ar1_opt.html
@@ -56,7 +56,7 @@ Usage
Run test on user data set — fit_to_data • arfit
+ Skip to contents
+
+
+
+
+
+
+
+ Fits a linear model to data set assuming AR1 error
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/reference/index.html b/reference/index.html
index f677175..c9755d5 100644
--- a/reference/index.html
+++ b/reference/index.html
@@ -37,29 +37,6 @@ Package index
-
-
-
-
- -
-
-
simulate_ar1()
-
-
- - Simulate data from an linear process with AR1 error
-
-
-
-
simulate_ar2()
-
-
- - Simulate data from an linear process with AR2 error
-
Simulation study
Functions used in simulation study
@@ -72,56 +49,26 @@ Simulation study
- simulation_study_grid_ar1()
-
-
- Simulation study using grid search
- -
-
-
simulation_study_grid_ar2()
-
-
- - Simulation study using optimization routine
-
-
-
-
simulation_study_opt_ar1()
-
-
- - Simulation study using optimization routine
-
-
-
-
simulation_study_opt_ar2()
-
-
- - Simulation study using optimization routine
-
-
-
sim_study_opt_ar1()
- Simulation study using optimization routine, multiple cores
-
-
sim_single_opt_ar1()
-
-
- - Simulates n data sets and performs bootstrapping
-
-
-
-
sim_study_opt_ar2()
+ simulate_ar1()
- - Simulation study using optimization routine, multiple cores
+ - Simulate data from an linear process with AR1 error
-
-
sim_single_opt_ar2()
+ simulation_study_opt_ar1()
- - Simulates n data sets and performs bootstrapping
+ - Simulation study using optimization routine
@@ -135,12 +82,6 @@ Likelihood Functionslikelihood_ar2()
-
-
- Evaluates the likelihood of AR2
Estimation Functions
@@ -154,28 +95,16 @@ Estimation Functionsfit_ar1_grid()
-
-
- Fit linear model with AR(1) error by GLS
- -
-
-
fit_ar2_grid()
-
-
- - Fit linear model with AR(1) error by GLS
-
-
-
fit_ar1_opt()
- Fit linear model with trend using optimization routine
-
-
fit_ar2_opt()
+ fit_to_data()
- - Fit linear model with trend using optimization routine
+ - Run test on user data set
-
est_beta_given_rho()
@@ -184,16 +113,10 @@ Estimation Functionsest_beta_given_rho2()
-
-
- - Estimate beta conditional on known AR1 parameter
-
-
-
-
isStationary_ar2()
+ check_data_validation()
- - Determines stationarity of AR2
+ - Checks data set for misspecification
Examples
@@ -238,7 +161,7 @@ Package Info
- Site built with pkgdown 2.1.0.
+ Site built with pkgdown 2.1.1.
diff --git a/reference/likelihood_ar1.html b/reference/likelihood_ar1.html
index fec7e3b..4012325 100644
--- a/reference/likelihood_ar1.html
+++ b/reference/likelihood_ar1.html
@@ -78,7 +78,7 @@ Value
diff --git a/reference/sim_study_opt_ar1.html b/reference/sim_study_opt_ar1.html
index 9007bc1..d1441a8 100644
--- a/reference/sim_study_opt_ar1.html
+++ b/reference/sim_study_opt_ar1.html
@@ -56,7 +56,8 @@ Usage
nSims = 200,
nBootSims = 500,
setSeed = NULL,
- nCores = NULL
+ nCores = NULL,
+ missing = F
)
@@ -96,6 +97,11 @@ Argumentsmissing
+Boolean. Whether to simulate with missing data (Default = F).
+If T then a single missing value is added at random to the response
+
+
nVec
Numeric vector. Values for the length of time series to simulate
@@ -122,7 +128,7 @@ Examples
- Site built with pkgdown 2.1.0.
+ Site built with pkgdown 2.1.1.
diff --git a/reference/simulate_ar1.html b/reference/simulate_ar1.html
index add6f90..9be0c36 100644
--- a/reference/simulate_ar1.html
+++ b/reference/simulate_ar1.html
@@ -50,7 +50,7 @@ Simulate data from an linear process with AR1 error
Usage
- simulate_ar1(alpha, beta = 0, sigma, rho, n)
+ simulate_ar1(alpha, beta = 0, sigma, rho, n, missingValues = NULL)
@@ -76,6 +76,10 @@ Argumentsn
Numeric scalar. Length of time series
+
+missingValues
+Numeric vector. Indices of y values for which there is missing data
+
diff --git a/reference/fit_to_data.html b/reference/fit_to_data.html
new file mode 100644
index 0000000..c6d6d3a
--- /dev/null
+++ b/reference/fit_to_data.html
@@ -0,0 +1,82 @@
+
+
Evaluates likelihood
Fits likelihood
Estimates MLE for model
Example provides
Tools for su=imulation study
Example provided
Tools for simulation study
References
@@ -65,8 +65,7 @@References
See also
- Useful links:
-Report bugs at https://github.com/andybeet/arfit/issues
+ Useful links:
Report bugs at https://github.com/andybeet/arfit/issues
Useful links:
- -
Report bugs at https://github.com/andybeet/arfit/issues
+ Report bugs at https://github.com/andybeet/arfit/issues
Useful links:
Checks data set for misspecification
+ Source:R/check_data_validation.R
+ check_data_validation.Rd
Check column names, missing data, consecutive equally spaced time units
+Site built with pkgdown 2.1.0.
+Site built with pkgdown 2.1.1.
diff --git a/reference/example_cedar_rapids.html b/reference/example_cedar_rapids.html index 99d6ea5..1863176 100644 --- a/reference/example_cedar_rapids.html +++ b/reference/example_cedar_rapids.html @@ -69,7 +69,7 @@Arguments
- Site built with pkgdown 2.1.0.
+ Site built with pkgdown 2.1.1.
diff --git a/reference/fit_ar1_opt.html b/reference/fit_ar1_opt.html
index 2da4d0e..d6fab85 100644
--- a/reference/fit_ar1_opt.html
+++ b/reference/fit_ar1_opt.html
@@ -56,7 +56,7 @@ Usage
Run test on user data set — fit_to_data • arfit
+ Skip to contents
+
+
+
+
+
+
+
+ Fits a linear model to data set assuming AR1 error
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/reference/index.html b/reference/index.html
index f677175..c9755d5 100644
--- a/reference/index.html
+++ b/reference/index.html
@@ -37,29 +37,6 @@ Package index
-
-
-
-
- -
-
-
simulate_ar1()
-
-
- - Simulate data from an linear process with AR1 error
-
-
-
-
simulate_ar2()
-
-
- - Simulate data from an linear process with AR2 error
-
Simulation study
Functions used in simulation study
@@ -72,56 +49,26 @@ Simulation study
- simulation_study_grid_ar1()
-
-
- Simulation study using grid search
- -
-
-
simulation_study_grid_ar2()
-
-
- - Simulation study using optimization routine
-
-
-
-
simulation_study_opt_ar1()
-
-
- - Simulation study using optimization routine
-
-
-
-
simulation_study_opt_ar2()
-
-
- - Simulation study using optimization routine
-
-
-
sim_study_opt_ar1()
- Simulation study using optimization routine, multiple cores
-
-
sim_single_opt_ar1()
-
-
- - Simulates n data sets and performs bootstrapping
-
-
-
-
sim_study_opt_ar2()
+ simulate_ar1()
- - Simulation study using optimization routine, multiple cores
+ - Simulate data from an linear process with AR1 error
-
-
sim_single_opt_ar2()
+ simulation_study_opt_ar1()
- - Simulates n data sets and performs bootstrapping
+ - Simulation study using optimization routine
@@ -135,12 +82,6 @@ Likelihood Functionslikelihood_ar2()
-
-
- Evaluates the likelihood of AR2
Estimation Functions
@@ -154,28 +95,16 @@ Estimation Functionsfit_ar1_grid()
-
-
- Fit linear model with AR(1) error by GLS
- -
-
-
fit_ar2_grid()
-
-
- - Fit linear model with AR(1) error by GLS
-
-
-
fit_ar1_opt()
- Fit linear model with trend using optimization routine
-
-
fit_ar2_opt()
+ fit_to_data()
- - Fit linear model with trend using optimization routine
+ - Run test on user data set
-
est_beta_given_rho()
@@ -184,16 +113,10 @@ Estimation Functionsest_beta_given_rho2()
-
-
- - Estimate beta conditional on known AR1 parameter
-
-
-
-
isStationary_ar2()
+ check_data_validation()
- - Determines stationarity of AR2
+ - Checks data set for misspecification
Examples
@@ -238,7 +161,7 @@ Package Info
- Site built with pkgdown 2.1.0.
+ Site built with pkgdown 2.1.1.
diff --git a/reference/likelihood_ar1.html b/reference/likelihood_ar1.html
index fec7e3b..4012325 100644
--- a/reference/likelihood_ar1.html
+++ b/reference/likelihood_ar1.html
@@ -78,7 +78,7 @@ Value
diff --git a/reference/sim_study_opt_ar1.html b/reference/sim_study_opt_ar1.html
index 9007bc1..d1441a8 100644
--- a/reference/sim_study_opt_ar1.html
+++ b/reference/sim_study_opt_ar1.html
@@ -56,7 +56,8 @@ Usage
nSims = 200,
nBootSims = 500,
setSeed = NULL,
- nCores = NULL
+ nCores = NULL,
+ missing = F
)
@@ -96,6 +97,11 @@ Argumentsmissing
+Boolean. Whether to simulate with missing data (Default = F).
+If T then a single missing value is added at random to the response
+
+
nVec
Numeric vector. Values for the length of time series to simulate
@@ -122,7 +128,7 @@ Examples
- Site built with pkgdown 2.1.0.
+ Site built with pkgdown 2.1.1.
diff --git a/reference/simulate_ar1.html b/reference/simulate_ar1.html
index add6f90..9be0c36 100644
--- a/reference/simulate_ar1.html
+++ b/reference/simulate_ar1.html
@@ -50,7 +50,7 @@ Simulate data from an linear process with AR1 error
Usage
- simulate_ar1(alpha, beta = 0, sigma, rho, n)
+ simulate_ar1(alpha, beta = 0, sigma, rho, n, missingValues = NULL)
@@ -76,6 +76,10 @@ Argumentsn
Numeric scalar. Length of time series
+
+missingValues
+Numeric vector. Indices of y values for which there is missing data
+
diff --git a/reference/fit_to_data.html b/reference/fit_to_data.html
new file mode 100644
index 0000000..c6d6d3a
--- /dev/null
+++ b/reference/fit_to_data.html
@@ -0,0 +1,82 @@
+
+
Fits a linear model to data set assuming AR1 error
+Package index
-
-
-
simulate_ar1()
- -
- - Simulate data from an linear process with AR1 error -
-
-
-
simulate_ar2()
- -
- - Simulate data from an linear process with AR2 error -
Simulation study
Functions used in simulation study
Simulation study
- simulation_study_grid_ar1()
-
-
- Simulation study using grid search
- -
-
-
simulation_study_grid_ar2()
-
-
- - Simulation study using optimization routine
-
-
-
-
simulation_study_opt_ar1()
-
-
- - Simulation study using optimization routine
-
-
-
-
simulation_study_opt_ar2()
-
-
- - Simulation study using optimization routine
-
-
-
sim_study_opt_ar1()
- Simulation study using optimization routine, multiple cores
-
-
sim_single_opt_ar1()
-
-
- - Simulates n data sets and performs bootstrapping
-
-
-
-
sim_study_opt_ar2()
+ simulate_ar1()
- - Simulation study using optimization routine, multiple cores
+ - Simulate data from an linear process with AR1 error
-
-
sim_single_opt_ar2()
+ simulation_study_opt_ar1()
- - Simulates n data sets and performs bootstrapping
+ - Simulation study using optimization routine
simulation_study_grid_ar1()
-
- simulation_study_grid_ar2()
-
- simulation_study_opt_ar1()
-
- simulation_study_opt_ar2()
-
- sim_study_opt_ar1()
sim_single_opt_ar1()
-
- sim_study_opt_ar2()
+ simulate_ar1()
sim_single_opt_ar2()
+ simulation_study_opt_ar1()
Likelihood Functionslikelihood_ar2()
-
-
- Evaluates the likelihood of AR2
Estimation Functions
@@ -154,28 +95,16 @@Estimation Functionsfit_ar1_grid()
-
-
- Fit linear model with AR(1) error by GLS
- -
-
-
fit_ar2_grid()
-
-
- - Fit linear model with AR(1) error by GLS
-
-
-
fit_ar1_opt()
- Fit linear model with trend using optimization routine
-
-
fit_ar2_opt()
+ fit_to_data()
- - Fit linear model with trend using optimization routine
+ - Run test on user data set
-
est_beta_given_rho()
@@ -184,16 +113,10 @@ Estimation Functionsest_beta_given_rho2()
-
-
- - Estimate beta conditional on known AR1 parameter
-
-
-
-
isStationary_ar2()
+ check_data_validation()
- - Determines stationarity of AR2
+ - Checks data set for misspecification
fit_ar2_grid()
-
- fit_ar1_opt()
fit_ar2_opt()
+ fit_to_data()
est_beta_given_rho()
@@ -184,16 +113,10 @@ Estimation Functionsest_beta_given_rho2() - -
isStationary_ar2()
+ check_data_validation()
Examples
@@ -238,7 +161,7 @@Package Info
- Site built with pkgdown 2.1.0.
+ Site built with pkgdown 2.1.1.
Value
diff --git a/reference/sim_study_opt_ar1.html b/reference/sim_study_opt_ar1.html index 9007bc1..d1441a8 100644 --- a/reference/sim_study_opt_ar1.html +++ b/reference/sim_study_opt_ar1.html @@ -56,7 +56,8 @@Usage
nSims = 200,
nBootSims = 500,
setSeed = NULL,
- nCores = NULL
+ nCores = NULL,
+ missing = F
)
@@ -96,6 +97,11 @@ Argumentsmissing
+Boolean. Whether to simulate with missing data (Default = F).
+If T then a single missing value is added at random to the response
+
+
nVec
Numeric vector. Values for the length of time series to simulate
@@ -122,7 +128,7 @@ Examples
- Site built with pkgdown 2.1.0.
+ Site built with pkgdown 2.1.1.
diff --git a/reference/simulate_ar1.html b/reference/simulate_ar1.html
index add6f90..9be0c36 100644
--- a/reference/simulate_ar1.html
+++ b/reference/simulate_ar1.html
@@ -50,7 +50,7 @@ Simulate data from an linear process with AR1 error
Usage
- simulate_ar1(alpha, beta = 0, sigma, rho, n)
+ simulate_ar1(alpha, beta = 0, sigma, rho, n, missingValues = NULL)
@@ -76,6 +76,10 @@ Argumentsn
Numeric scalar. Length of time series
+
+missingValues
+Numeric vector. Indices of y values for which there is missing data
+
Boolean. Whether to simulate with missing data (Default = F). +If T then a single missing value is added at random to the response
Numeric vector. Values for the length of time series to simulate
Examples
- Site built with pkgdown 2.1.0.
+ Site built with pkgdown 2.1.1.
diff --git a/reference/simulate_ar1.html b/reference/simulate_ar1.html
index add6f90..9be0c36 100644
--- a/reference/simulate_ar1.html
+++ b/reference/simulate_ar1.html
@@ -50,7 +50,7 @@ Simulate data from an linear process with AR1 error
Usage
- simulate_ar1(alpha, beta = 0, sigma, rho, n)
+ simulate_ar1(alpha, beta = 0, sigma, rho, n, missingValues = NULL)
@@ -76,6 +76,10 @@ Argumentsn
Numeric scalar. Length of time series
+
+missingValues
+Numeric vector. Indices of y values for which there is missing data
+
Usage
-simulate_ar1(alpha, beta = 0, sigma, rho, n)
simulate_ar1(alpha, beta = 0, sigma, rho, n, missingValues = NULL)
Argumentsn
Numeric scalar. Length of time series
+
+missingValues
+Numeric vector. Indices of y values for which there is missing data
+
Numeric scalar. Length of time series
Numeric vector. Indices of y values for which there is missing data