Description Usage Arguments Value See Also Examples
Function which selects a model for the GREG based on the mean squared error (MSE),
based on all possible combinations that may be obtained from a set of p
variables.
1 |
x |
|
Xk |
Vector of characters with the names of the co-variables to
be used in the model. These must be contained in the columns of |
total |
Total of the auxiliary variable. |
prom |
Name of the column in |
weight |
Expansion factor of each observation. |
p |
Maximum number of combinations to make with the covariantes. By default |
stratum |
Indicator of the domains in the sample. By default |
... |
Argumentos adicional empleado por la función |
Returns a data.frame
where report is made.
List of models resulting from ∑_{i=1}^{p} {{p}\choose{i}}
El R^2 for each model definedo.
Mean squared error obtained in the estimation
1 2 3 4 5 6 7 8 9 10 11 12 | data('ResultStudent')
attach(ResultStudent)
sampling <- data.frame(student[,c('weight','prop','ses')],
Domains(student[["urbanicity"]]),
Domains(student[["schooltype"]]))
sampling[["sel"]] <- gl(11,31)
Xk<-c('Rural', 'Urbana','No.Oficial', 'Oficial', 'ses')
S.fitGREG(x = sampling,total = total,Xk = Xk, prom = 'prop',
weight = 'weight', method = 'linear', p = 3)
S.fitGREG(x = sampling,total = total,Xk = Xk, prom = "prop",
weight = 'weight',stratum='sel', method = 'linear',p=3)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.