% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/grouped.R
\name{estimate_block_radii}
\alias{estimate_block_radii}
\title{Estimate block radius for each region}
\usage{
estimate_block_radii(
  sf_obj,
  region_col,
  quantile_p = 0.85,
  centroid_fun = c("centroid", "point_on_surface")
)
}
\arguments{
\item{sf_obj}{Projected sf object with region column}

\item{region_col}{Grouping column name}

\item{quantile_p}{Quantile for radius estimation (default 0.85)}

\item{centroid_fun}{"centroid" or "point_on_surface"}
}
\value{
data.frame with columns: region, block_radius, cx, cy, n_units
}
\description{
Computes the 85th percentile of distances from child-unit centroids to
their region centroid. The 85th percentile is preferred over the maximum
because the maximum is sensitive to outlier units and produces
over-conservative block radii.
}
