View source: R/apply_model_func.R
| apply_model_func | R Documentation | 
This function applies a model to a nested dataframe and return a new column with the model object. It accets function models expressions in the form of: my_model <- funcion(my_dataset){ lm(value ~ condition_1 + condition_2, data = my_dataset) }, where value, is the name of your variable of interest and condition_1 + condition_2 are the explanatory variables. It can also use other type of model expression.
apply_model_func(dataset, targed_dataset = "data", my_model)
| dataset | A nested dataframe. Ideally, previously grouped by the paramters of interes to be analyzed. Eg. wave frequency, wave latency, amplitude, etc. | 
| targed_dataset | Character. the column name of the dataset to perform the summary. By default uses the colum named  | 
| my_model | A function. A function containing the model to apply to your targeted dataset. | 
The input dataframe with a new column named "my_model" containing the model object.
# the example is missing
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.