R 패키지 메타데이터와 수집 신호를 모아 봅니다.
첫 화면에서 판단해야 할 수집 신호를 먼저 배치합니다.
DESCRIPTION에서 감지한 backend 관련 package입니다.
기본 메타데이터를 작은 카드와 토큰으로 압축합니다.
| Package | Type | Spec |
|---|---|---|
| grpreg CRAN · 0.1-4 · 2026-05-30 | Imports | grpreg |
| MASS CRAN · 0.1-4 · 2026-05-30 | Imports | MASS |
| mboost CRAN · 0.1-4 · 2026-05-30 | Imports | mboost |
| mgcv CRAN · 0.1-4 · 2026-05-30 | Imports | mgcv |
| raster CRAN · 0.1-4 · 2026-05-30 | Suggests | raster |
| sp CRAN · 0.1-4 · 2026-05-30 | Suggests | sp |
| 검색 결과가 없습니다. | ||
| Package | Type | Spec |
|---|---|---|
| 표시할 dependency edge가 없습니다. | ||
| 검색 결과가 없습니다. | ||
Help for package geoGAM const macros = { "\\R": "\\textsf{R}", "\\mbox": "\\text", "\\code": "\\texttt"}; function processMathHTML() { var l = document.getElementsByClassName('reqn'); for (let e of l) { katex.render(e.textContent, e, { throwOnError: false, macros }); } return; } Package {geoGAM} Contents berne berne.grid bootstrap.geoGAM geoGAM methods predict.geoGAM Type: Package Title: Select Sparse Geoadditive Models for Spatial Prediction Version: 0.1-4 Date: 2025-10-12 Depends: R(≥ 2.14.0) Imports: mboost, mgcv, grpreg, MASS Suggests: raster, sp Description: A model building procedure to build parsimonious geoadditive model from a large number of covariates. Continuous, binary and ordered categorical responses are supported. The model building is based on component wise gradient boosting with linear effects, smoothing splines and a smooth spatial surface to model spatial autocorrelation. The resulting covariate set after gradient boosting is further reduced through backward elimination and aggregation of factor levels. The package provides a model based bootstrap method to simulate prediction intervals for point predictions. A test data set of a soil mapping case study in Berne (Switzerland) is provided. Nussbaum, M., Walthert, L., Fraefel, M., Greiner, L., and Papritz, A. (2017) < doi:10.5194/soil-3-191-2017 >. License: GPL-2 | GPL-3 [expanded from: GPL (≥ 2)] Author: Madlene Nussbaum [cre, aut], Andreas Papritz [ths] Maintainer: Madlene Nussbaum <m.nussbaum@uu.nl> LazyData: TRUE NeedsCompilation: no Repository: CRAN Packaged: 2025-10-12 18:47:36 UTC; madlene Date/Publication: 2025-10-16 07:30:02 UTC Berne – soil mapping case study Description The Berne dataset contains soil responses and a large set of explanatory covariates. The study area is located to the Northwest of the city of Berne and covers agricultural area. Soil responses included are soil pH (4 depth intervals calculated from soil horizon), drainage classes (3 ordered classes) and presence of waterlogging characteristics down to a specified depth (binary response). Covariates cover environmental conditions by representing climate, topography, parent material and soil. Usage data("berne") Format A data frame with 1052 observations on the following 238 variables. site_id_unique ID of original profile sampling x easting, Swiss grid in m, EPSG: 21781 (CH1903/LV03) y northing, Swiss grid in m, EPSG: 21781 (CH1903/LV03) dataset Factor splitting dataset for calibration and independent validation . validation was assigned at random by using weights to ensure even spatial coverage of the agricultural area. dclass Drainage class, ordered Factor. waterlog.30 Presence of waterlogging characteristics down to 30 cm (1: presence, 0: absence) waterlog.50 Presence of waterlogging characteristics down to 50 cm (1: presence, 0: absence) waterlog.100 Presence of waterlogging characteristics down to 100 cm (1: presence, 0: absence) ph.0.10 Soil pH in 0-10 cm depth. ph.10.30 Soil pH in 10-30 cm depth. ph.30.50 Soil pH in 30-50 cm depth. ph.50.100 Soil pH in 50-100 cm depth. timeset Factor with range of sampling year and label for sampling type for soil pH. no label: CaCl_{2} laboratory measurements, field : field estimate by indicator solution, ptf : H_{2}0 laboratory measurements transferred by pedotransfer function (univariate linear regression) to level of CaCl_{2} measures. cl_mt_etap_pe columns 14 to 238 contain environmental covariates representing soil forming factors. For more information see Details below. cl_mt_etap_ro cl_mt_gh_1 cl_mt_gh_10 cl_mt_gh_11 cl_mt_gh_12 cl_mt_gh_2 cl_mt_gh_3 cl_mt_gh_4 cl_mt_gh_5 cl_mt_gh_6 cl_mt_gh_7 cl_mt_gh_8 cl_mt_gh_9 cl_mt_gh_y cl_mt_pet_pe cl_mt_pet_ro cl_mt_rr_1 cl_mt_rr_10 cl_mt_rr_11 cl_mt_rr_12 cl_mt_rr_2 cl_mt_rr_3 cl_mt_rr_4 cl_mt_rr_5 cl_mt_rr_6 cl_mt_rr_7 cl_mt_rr_8 cl_mt_rr_9 cl_mt_rr_y cl_mt_swb_pe cl_mt_swb_ro cl_mt_td_1 cl_mt_td_10 cl_mt_td_11 cl_mt_td_12 cl_mt_td_2 cl_mt_tt_1 cl_mt_tt_11 cl_mt_tt_12 cl_mt_tt_3 cl_mt_tt_4 cl_mt_tt_5 cl_mt_tt_6 cl_mt_tt_7 cl_mt_tt_8 cl_mt_tt_9 cl_mt_tt_y ge_caco3 ge_geo500h1id ge_geo500h3id ge_gt_ch_fil ge_lgm ge_vszone sl_nutr_fil sl_physio_neu sl_retention_fil sl_skelett_r_fil sl_wet_fil tr_be_gwn25_hdist tr_be_gwn25_vdist tr_be_twi2m_7s_tcilow tr_be_twi2m_s60_tcilow tr_ch_3_80_10 tr_ch_3_80_10s tr_ch_3_80_20s tr_cindx10_25 tr_cindx50_25 tr_curv_all tr_curv_plan tr_curv_prof tr_enessk tr_es25 tr_flowlength_up tr_global_rad_ch tr_lsf tr_mrrtf25 tr_mrvbf25 tr_ndom_veg2m_fm tr_nego tr_nnessk tr_ns25 tr_ns25_145mn tr_ns25_145sd tr_ns25_75mn tr_ns25_75sd tr_poso tr_protindx tr_se_alti10m_c tr_se_alti25m_c tr_se_alti2m_fmean_10c tr_se_alti2m_fmean_25c tr_se_alti2m_fmean_50c tr_se_alti2m_fmean_5c tr_se_alti2m_std_10c tr_se_alti2m_std_25c tr_se_alti2m_std_50c tr_se_alti2m_std_5c tr_se_alti50m_c tr_se_alti6m_c tr_se_conv2m tr_se_curv10m tr_se_curv25m tr_se_curv2m tr_se_curv2m_s15 tr_se_curv2m_s30 tr_se_curv2m_s60 tr_se_curv2m_s7 tr_se_curv2m_std_10c tr_se_curv2m_std_25c tr_se_curv2m_std_50c tr_se_curv2m_std_5c tr_se_curv50m tr_se_curv6m tr_se_curvplan10m tr_se_curvplan25m tr_se_curvplan2m tr_se_curvplan2m_grass_17c tr_se_curvplan2m_grass_45c tr_se_curvplan2m_grass_9c tr_se_curvplan2m_s15 tr_se_curvplan2m_s30 tr_se_curvplan2m_s60 tr_se_curvplan2m_s7 tr_se_curvplan2m_std_10c tr_se_curvplan2m_std_25c tr_se_curvplan2m_std_50c tr_se_curvplan2m_std_5c tr_se_curvplan50m tr_se_curvplan6m tr_se_curvprof10m tr_se_curvprof25m tr_se_curvprof2m tr_se_curvprof2m_grass_17c tr_se_curvprof2m_grass_45c tr_se_curvprof2m_grass_9c tr_se_curvprof2m_s15 tr_se_curvprof2m_s30 tr_se_curvprof2m_s60 tr_se_curvprof2m_s7 tr_se_curvprof2m_std_10c tr_se_curvprof2m_std_25c tr_se_curvprof2m_std_50c tr_se_curvprof2m_std_5c tr_se_curvprof50m tr_se_curvprof6m tr_se_diss2m_10c tr_se_diss2m_25c tr_se_diss2m_50c tr_se_diss2m_5c tr_se_e_aspect10m tr_se_e_aspect25m tr_se_e_aspect2m tr_se_e_aspect2m_10c tr_se_e_aspect2m_25c tr_se_e_aspect2m_50c tr_se_e_aspect2m_5c tr_se_e_aspect2m_grass_17c tr_se_e_aspect2m_grass_45c tr_se_e_aspect2m_grass_9c tr_se_e_aspect50m tr_se_e_aspect6m tr_se_mrrtf2m tr_se_mrvbf2m tr_se_n_aspect10m tr_se_n_aspect25m tr_se_n_aspect2m tr_se_n_aspect2m_10c tr_se_n_aspect2m_25c tr_se_n_aspect2m_50c tr_se_n_aspect2m_5c tr_se_n_aspect2m_grass_17c tr_se_n_aspect2m_grass_45c tr_se_n_aspect2m_grass_9c tr_se_n_aspect50m tr_se_n_aspect6m tr_se_no2m_r500 tr_se_po2m_r500 tr_se_rough2m_10c tr_se_rough2m_25c tr_se_rough2m_50c tr_se_rough2m_5c tr_se_rough2m_rect3c tr_se_sar2m tr_se_sca2m tr_se_slope10m tr_se_slope25m tr_se_slope2m tr_se_slope2m_grass_17c tr_se_slope2m_grass_45c tr_se_slope2m_grass_9c tr_se_slope2m_s15 tr_se_slope2m_s30 tr_se_slope2m_s60 tr_se_slope2m_s7 tr_se_slope2m_std_10c tr_se_slope2m_std_25c tr_se_slope2m_std_50c tr_se_slope2m_std_5c tr_se_slope50m tr_se_slope6m tr_se_toposcale2m_r3_r50_i10s tr_se_tpi_2m_10c tr_se_tpi_2m_25c tr_se_tpi_2m_50c tr_se_tpi_2m_5c tr_se_tri2m_altern_3c tr_se_tsc10_2m tr_se_twi2m tr_se_twi2m_s15 tr_se_twi2m_s30 tr_se_twi2m_s60 tr_se_twi2m_s7 tr_se_vrm2m tr_se_vrm2m_r10c tr_slope25_l2g tr_terrtextur tr_tpi2000c tr_tpi5000c tr_tpi500c tr_tsc25_18 tr_tsc25_40 tr_twi2 tr_twi_normal tr_vdcn25 Details Soil data The soil data originates from various soil sampling campaigns since 1968. Most of the data was collected in conventional soil surveys in the 1970ties in the course of amelioration and farm land exchanges. As frequently observed in legacy soil data sampling site allocation followed a purposive sampling strategy identifying typical soils in an area in the course of polygon soil mapping. dclass contains drainage classes of three levels. Swiss soil classification differentiates stagnic (I), gleyic (G) and anoxic/reduced (R) soil profile qualifiers with each 4, 6 resp. 5 levels. To reduce complexity the qualifiers I, G and R were aggregated to the degree of hydromorphic characteristic of a site with the ordered levels well (qualifier labels I1–I2, G1–G3, R1 and no hydromorphic qualifier), moderate weThe Berne dataset contains soil responses and a large set of explanatory covariates. The study area is located to the Northwest of the city of Berne and covers agricultural area. Soil responses included are soil pH (4 depth intervals calculated from soil horizon), drainage classes (3 ordered classes) and presence of waterlogging characteristics down to a specified depth (binary response). Covariates cover environmental conditions by representing climate, topography, parent material and soil.
data("berne")data(berne)The Berne grid dataset contains values of spatial covariates on the nodes of a 20 m grid. The dataset is intended for spatial continouous predictions of soil properties modelled from the sampling locations in berne dataset.
data("berne")data(berne.grid)Method for class geoGAM to compute model based bootstrap for point predictions. Returns complete predictive distribution of which prediction intervals can be computed.
bootstrapdefault(object, ...) bootstrapgeoGAM(object, newdata, R = 100, back.transform = c("none", "log", "sqrt"), seed = NULL, cores = detectCores(), ...)data(quakes) # group stations to ensure min 20 observations per factor level # and reduce number of levels for speed quakes$stations <- factor( cut( quakes$stations, breaks = c(0,15,19,23,30,39,132)) ) # Artificially split data to create prediction data set set.seed(1) quakes.pred <- quakes[ ss <- sample(1:nrow(quakes), 500), ] quakes <- quakes[ -ss, ] quakes.geogam <- geoGAM(response = "mag", covariates = c("stations", "depth"), coords = c("lat", "long"), data = quakes, max.stop = 20, cores = 1) ## compute model based bootstrap with 10 repetitions (use at least 100) quakes.boot <- bootstrap(quakes.geogam, newdata = quakes.pred, R = 10, cores = 1) # plot predictive distribution for site in row 9 hist( as.numeric( quakes.boot[ 9, -c(1:2)] ), col = "grey", main = paste("Predictive distribution at", paste( quakes.boot[9, 1:2], collapse = "/" )), xlab = "predicted magnitude") # compute 95 % prediction interval and add to plot quant95 <- quantile( as.numeric( quakes.boot[ 9, -c(1:2)] ), probs = c(0.025, 0.975) ) abline(v = quant95[1], lty = "dashed") abline(v = quant95[2], lty = "dashed")Selects a parsimonious geoadditive model from a large set of covariates with the aim of (spatial) prediction.
geoGAM(response, covariates = names(data)[!(names(data) %in% c(response,coords))], data, coords = NULL, weights = rep(1, nrow(data)), offset = TRUE, max.stop = 300, non.stationary = FALSE, sets = NULL, seed = NULL, validation.data = NULL, verbose = 0, cores = min(detectCores(),10))### small examples with earthquake data data(quakes) set.seed(2) quakes <- quakes[ sample(1:nrow(quakes), 50), ] quakes.geogam <- geoGAM(response = "mag", covariates = c("depth", "stations"), data = quakes, seed = 2, max.stop = 5, cores = 1) summary(quakes.geogam) data(quakes) # create grouped factor with reduced number of levels quakes$stations <- factor( cut( quakes$stations, breaks = c(0,15,19,23,30,39,132)) ) quakes.geogam <- geoGAM(response = "mag", covariates = c("stations", "depth"), coords = c("lat", "long"), data = quakes, max.stop = 10, cores = 1) summary(quakes.geogam) summary(quakes.geogam, what = "path") ## Use soil data set of soil mapping study area near Berne data(berne) set.seed(1) # Split data sets and # remove rows with missing values in response and covariates d.cal <- berne[ berne$dataset == "calibration" & complete.cases(berne), ] d.val <- berne[ berne$dataset == "validation" & complete.cases(berne), ] ### Model selection for continuous response ph10.geogam <- geoGAM(response = "ph.0.10", covariates = names(d.cal)[14:ncol(d.cal)], coords = c("x", "y"), data = d.cal, offset = TRUE, sets = mboost::cv(rep(1, nrow(d.cal)), type = "kfold"), validation.data = d.val, cores = 1) summary(ph10.geogam) summary(ph10.geogam, what = "path") ### Model selection for binary response waterlog100.geogam <- geoGAM(response = "waterlog.100", covariates = names(d.cal)[c(14:54, 56:ncol(d.cal))], coords = c("x", "y"), data = d.cal, offset = FALSE, sets = sample( cut(seq(1,nrow(d.cal)),breaks=10,labels=FALSE) ), validation.data = d.val, cores = 1) summary(waterlog100.geogam) summary(waterlog100.geogam, what = "path") ### Model selection for ordered response dclass.geogam <- geoGAM(response = "dclass", covariates = names(d.cal)[14:ncol(d.cal)], coords = c("x", "y"), data = d.cal, offset = TRUE, non.stationary = TRUE, seed = 1, validation.data = d.val, cores = 1) summary(dclass.geogam) summary(dclass.geogam, what = "path")Methods for models fitted by geoGAM().
summarygeoGAM(object, , what = c("final", "path")) printgeoGAM(x, ) plotgeoGAM(x, , what = c("final", "path"))### small example with earthquake data data(quakes) set.seed(2) quakes <- quakes[ sample(1:nrow(quakes), 50), ] quakes.geogam <- geoGAM(response = "mag", covariates = c("depth", "stations"), data = quakes, seed = 2, max.stop = 5, cores = 1) summary(quakes.geogam) summary(quakes.geogam, what = "path") plot(quakes.geogam) plot(quakes.geogam, what = "path")Takes a fitted geoGAM object and produces point predictions for a new set of covariate values. If no new data is provided fitted values are returned. Centering and scaling is applied with the same parameters as for the calibration data set given to geoGAM. Factor levels are aggregated according to the final model fit.
predictgeoGAM(object, newdata, type = c("response", "link", "probs", "class"), back.transform = c("none", "log", "sqrt"), threshold = 0.5, se.fit = FALSE, )data(quakes) set.seed(2) quakes <- quakes[ ss <- sample(1:nrow(quakes), 50), ] # Artificially split data to create prediction data set quakes.pred <- quakes[ -ss, ] quakes.geogam <- geoGAM(response = "mag", covariates = c("depth", "stations"), data = quakes, max.stop = 5, cores = 1) predicted <- predict(quakes.geogam, newdata = quakes.pred, type = "response" ) ## Use soil data set of soil mapping study area near Berne data(berne) data(berne.grid) # Split data sets and # remove rows with missing values in response and covariates d.cal <- berne[ berne$dataset == "calibration" & complete.cases(berne), ] ### Model selection for numeric response ph10.geogam <- geoGAM(response = "ph.0.10", covariates = names(d.cal)[14:ncol(d.cal)], coords = c("x", "y"), data = d.cal, seed = 1, cores = 1) # Create GRID output with predictions sp.grid <- berne.grid[, c("x", "y")] sp.grid$pred.ph.0.10 <- predict(ph10.geogam, newdata = berne.grid) if(requireNamespace("raster")) require("sp") # transform to sp object coordinates(sp.grid) <- ~ x + y # assign Swiss CH1903 / LV03 projection proj4string(sp.grid) <- CRS("EPSG:21781") # transform to grid gridded(sp.grid) <- TRUE plot(sp.grid) # optionally save result to GeoTiff # writeRaster(raster(sp.grid, layer = "pred.ph.0.10"), # filename= "raspH10.tif", datatype = "FLT4S", format ="GTiff")| Repository | Version | Published | First seen | Last seen | Docs |
|---|---|---|---|---|---|
| CRAN | 0.1-4 | 2026-05-29 | 2026-05-30 |
표시할 OSV 데이터가 없습니다.
표시할 OpenAlex 데이터가 없습니다.