missing_est {itsadug} | R Documentation |
Return indices of data that were not fitted by the model.
Description
Return indices of data that were not fitted by the model.
Usage
missing_est(model)
Arguments
model |
A fitted regression model (using lm, glm, gam, or bam). |
Value
The indices of the data that were not fitted by the model.
Author(s)
Jacolien van Rij
See Also
Other Utility functions:
convertNonAlphanumeric()
,
corfit()
,
diff_terms()
,
find_difference()
,
modeledf()
,
observations()
,
print_summary()
,
refLevels()
,
res_df()
,
summary_data()
,
timeBins()
Examples
data(simdat)
# Add missing values:
set.seed(123)
simdat[sample(nrow(simdat), size=20),]$Y <- NA
# Fit simple linear model:
lm1 <- lm(Y ~ Time, data=simdat)
na.el <- missing_est(lm1)
length(na.el)
[Package itsadug version 2.4.1 Index]