Description Usage Arguments Value Author(s) See Also Examples

The `hplm`

function computes a hierarchical piecewise regression model.

1 2 3 4 |

`data` |
A single-case data frame. See |

`model` |
Model used for calculating the slope parameter (see Huitema &
McKean, 2000). Default is |

`method` |
Method used to fit your model. Pass |

`control` |
A list of settings for the estimation algorithm, replacing
the default values passed to the function |

`random.slopes` |
If |

`ICC` |
If |

`data.l2` |
A dataframe providing additional variables at Level 2. The scdf File has to have names for all cases and the Level 2 dataframe has to have a column named 'cases' with the names of the cases the Level 2 variables belong to. |

`formula` |
Defaults to the standard piecewise regression model. The parameter 'inter' adresses the intercation term defined based on the method provide in the model argument (e.g., "B&L-B"). The formula can be changed for example to include further L1 or L2 variables into the regression model. |

`model` |
List containing infromation about the applied model |

`N` |
Number of single-cases. |

`hplm` |
Object of class lme contaning the multilevel model |

`model.0` |
Object of class lme containing the Zero Model. |

`model.without` |
Object of class gls containing fixed effect model. |

`ICC` |
List containing intraclass correlation and test parameters. |

Juergen Wilbert

1 2 3 4 5 | ```
## Compute hplm model on a MBD over fifty cases (restricted log-likelihood)
hplm(exampleAB_50, method = "REML", random.slopes = TRUE)
## Analyzing with additional L2 variables
hplm(exampleAB_50, data.l2 = exampleAB_50.l2, update.fixed = .~. + age + sex + age:sex)
``` |

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.