Run a struktur model
struktur_model.Rd
Estimates total and uncertainty for a rate, homogeneous or regression model within strata.
Arguments
- data
Population data frame
- sample_data
Sample data frame or variable with sample indicator (1 for in sample, 0 otherwise)
- id
Name of identification variable as a string. Should be same in sample_data and data dataframes.
- x
Name of the explanatory variable.
- y
Name of the statistic variable.
- strata
Name of the strata variable.
- exclude
Vector of id numbers to exclude from the model. This observations will be included in the total with their observed values.
- method
Model methods to use. Default is 'rate' for a rate model. Also 'homogen' and 'reg' for regression model will be available soon.