# Save the Slope model to a file called "slope.txt" in temp directory
model_to_file(model = "slope",
filename = file.path(tempdir(), "slope.txt"))
# Save the First Difference model to a file called "fd.txt" in temp directory
model_to_file(model = "firstdiff",
filename = file.path(tempdir(), "fd.txt"))
# Save the GAM model to a file called "gam.txt" in temp directory
model_to_file(model = "gam",
filename = file.path(tempdir(), "gam.txt"))
# Save the GAM year effects model to a file called "gamye.txt" in temp directory
model_to_file(model = "gamye",
filename = file.path(tempdir(), "gamye.txt"))
Run the code above in your browser using DataLab