| dative {languageR} | R Documentation |
Data describing the realization of the dative as NP or PP in the Switchboard corpus and the Treebank Wall Street Journal collection.
data(dative)
A data frame with 3263 observations on the following 15 variables.
SpeakerModalityspoken, written.VerbSemanticClassa (abstract: 'give it some thought'),
c (communication: 'tell, give me your name'),
f (future transfer of possession: 'owe, promise'),
p (prevention of possession: 'cost, deny'), and
t (transfer of possession: 'give an armband, send').LengthOfRecipientAnimacyOfRecanimate and
inanimate for the animacy of the recipient.DefinOfRecdefinite and
indefinite coding the definiteness of the recipient.PronomOfRecnonpronominal and
pronominal coding the pronominality of the recipient.LengthOfThemeAnimacyOfThemeanimate and
inanimate coding the animacy of the theme.DefinOfThemedefinite and
indefinite coding the definiteness of the theme.PronomOfThemenonpronominal and
pronominal coding the pronominality of the theme.RealizationOfRecipientNP and
PP coding the realization of the dative.AccessOfRecaccessible,
given, and new coding the accessibility of the recipient.AccessOfThemeaccessible,
given, and new coding the accessibility of the theme.Bresnan, J., Cueni, A., Nikitina, T. and Baayen, R. H. (2007) Predicting the dative alternation, in Bouma, G. and Kraemer, I. and Zwarts, J. (eds.), Cognitive Foundations of Interpretation, Royal Netherlands Academy of Sciences, 33 pages, in press.
data(dative) # analysis with CART tree library(rpart) # ---- initial tree dative.rp = rpart(RealizationOfRecipient ~ ., data = dative[ ,-c(1, 3)]) # exclude the columns with subjects, verbs plot(dative.rp, compress = TRUE, branch = 1, margin = 0.1) text(dative.rp, use.n = TRUE, pretty = 0) # ---- pruning the initial tree plotcp(dative.rp) dative.rp1 = prune(dative.rp, cp = 0.041) plot(dative.rp1, compress = TRUE, branch = 1, margin = 0.1) text(dative.rp1, use.n = TRUE, pretty = 0) # analysis with logistic regression # ---- logistic regression with the Design package library(Design) dative.dd = datadist(dative) options(datadist = 'dative.dd') dative.lrm = lrm(RealizationOfRecipient ~ AccessOfTheme + AccessOfRec + LengthOfRecipient + AnimacyOfRec + AnimacyOfTheme + PronomOfTheme + DefinOfTheme + LengthOfTheme+ SemanticClass + Modality, data = dative) anova(dative.lrm) par(mfrow = c(4,3)) plot(dative.lrm) par(mfrow = c(1,1)) # ---- mixed-effects logistic regression with the lme4 package library(lme4, keep.source = FALSE) dative.lmer = lmer(RealizationOfRecipient ~ AccessOfTheme + AccessOfRec + LengthOfRecipient + AnimacyOfRec + AnimacyOfTheme + PronomOfTheme + DefinOfTheme + LengthOfTheme + SemanticClass + Modality + (1|Verb), data = dative, family = "binomial") dative.lmer