Skip to content

Commit

Permalink
v0.10.4: Add selfother data set + contr var exampl
Browse files Browse the repository at this point in the history
  • Loading branch information
nicebread committed Mar 23, 2021
1 parent 2439d4c commit b85cb2e
Show file tree
Hide file tree
Showing 6 changed files with 70 additions and 19 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Package: RSA
Type: Package
Title: Response Surface Analysis
Version: 0.10.4
Date: 2021-03-12
Date: 2021-03-23
Authors@R: c(
person(c("Felix"), "Schönbrodt", email = "felix@nicebread.de", role = c("cre", "aut")),
person("Sarah", "Humberg", role = c("aut"))
Expand Down
21 changes: 21 additions & 0 deletions R/selfother-data.R
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
#' A fake data set on self-other agreement
#'
#' The data set selfother is a self-generated fake data set which can, for example, be used to try out the inclusion of control variables in the RSA() function and to try out cubic RSA. The variables in the data set are meant to reflect the following constructs:
#'
#' \itemize{
#' \item IQ_self Self-rated intelligence (on IQ scale)
#' \item IQ_friend Friend-rated intelligence (on IQ scale)
#' \item harmony Level of harmony in typical interactions between the target person and the friend
#' \item VI_self Self-reported value importance
#' \item VI_partner Partner-reported value importance
#' \item distance Emotional distance felt toward the partner
#' \item age Age of the target person
#' \item int Typical number of interactions between the target person and the friend (who provided the intelligence rating) per week
#' \item liking Target person's rating about how much he/she likes the friend
#' }
#'
#' @docType data
#' @keywords datasets
#' @format A data frame with 800 rows and 9 variables
#' @name selfother
NULL
24 changes: 9 additions & 15 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,19 +5,17 @@ rmarkdown::render("README.rmd")

[![Build
Status](https://travis-ci.org/nicebread/RSA.svg?branch=master)](https://travis-ci.org/nicebread/RSA)
[![Last-changedate](https://img.shields.io/badge/last%20change-2021--01--13-yellowgreen.svg)](/commits/master)
[![Last-changedate](https://img.shields.io/badge/last%20change-2021--03--23-yellowgreen.svg)](/commits/master)
[![](https://www.r-pkg.org/badges/version/RSA?color=orange)](https://cran.r-project.org/package=RSA)
[![packageversion](https://img.shields.io/badge/Package%20version-0.10.3-orange.svg?style=flat-square)](commits/master)
[![packageversion](https://img.shields.io/badge/Package%20version-0.10.4-orange.svg?style=flat-square)](commits/master)
![](http://cranlogs.r-pkg.org/badges/RSA)
[![](https://codecov.io/gh/nicebread/RSA/branch/master/graph/badge.svg)](https://codecov.io/gh/nicebread/RSA)

RSA
===
# RSA

An R package for Response Surface Analysis

Installation
------------
## Installation

The stable CRAN version can be installed by:

Expand All @@ -28,15 +26,13 @@ The current development version can be installed by:
install.packages(c("devtools", "lavaan", "plyr", "ggplot2", "lattice", "tkrplot", "RColorBrewer", "rgl", "gridExtra", "aplpack", "fields", "qgraph", "AICcmodavg"))
devtools::install_github("nicebread/RSA")

Questions? Go to our Google mailing list
----------------------------------------
## Questions? Go to our Google mailing list

- An email list for asking questions related to the RSA-package has
been created at Google groups:
<a href="https://groups.google.com/forum/?fromgroups&amp;hl=en#!forum/rsa-in-r" class="uri">https://groups.google.com/forum/?fromgroups&amp;hl=en#!forum/rsa-in-r</a>
<https://groups.google.com/forum/?fromgroups&hl=en#!forum/rsa-in-r>

Demo script (with built-in data set)
------------------------------------
## Demo script (with built-in data set)

# if not already done:
# install the RSA package
Expand Down Expand Up @@ -97,17 +93,15 @@ Demo script (with built-in data set)
# sliders for regression weights
demoRSA()

Interactive plotting of polynomial surfaces
===========================================
# Interactive plotting of polynomial surfaces

Not part of this package, but related: you can create polynomial surface
plots with this [interactive
app](http://shinyapps.org/showapp.php?app=https://tellmi.psy.lmu.de/felix/polySurface):

![](http://shinyapps.org/teaserpics/polynomialSurfaceExplorer.jpg)

Maintainers
===========
# Maintainers

[Felix Schönbrodt](https://www.nicebread.de/)

Expand Down
6 changes: 3 additions & 3 deletions cran-comments.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
## Test environments
* local OS X install
* Win-builder
* local macos install
* Win-builder (devel and release)
* Rhub

## R CMD check results
Expand All @@ -9,4 +9,4 @@ There were no ERRORs, WARNINGs, or relevant NOTEs .
## Downstream dependencies
None.

Note: This is just a minor update to fix a bug.
Note: This is just a minor update to fix a bug.
10 changes: 10 additions & 0 deletions man/RSA.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

26 changes: 26 additions & 0 deletions man/selfother.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit b85cb2e

Please sign in to comment.