ch.moralsRmLearningEffect | R Documentation |
This function attempts to fit a non-linear, decellerating function to the specifed data. Then it adds two columns to the dataframe: a column with the predicted datapoints based on the nls fit and a column with the residuals around that fit. The function also returns the nls fit object
ch.moralsRmLearningEffect(data, x, y, fitCol, resCol, ...)
data |
the dataframe containing the data.. |
x |
a string the specifies the column name in "data" that contains the x variable. |
y |
a string the specifies the column name in "data" that contains the y variable. |
fitCol |
a string that specifies the name of the new column that will contain the predicted datapoints. |
resCol |
a string that specifies the name of the new column that will contain the residual datapoints. |
a list containing: data = original datafram with the new columns; nlsFit = the nls fit object.
ch.moralsRmLearningEffect (data=moralsData,"trial", "RT", "fitRT", "resRT")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.