Search notes:

R function: coplot

X11()

CNT = 150

A1  =  35
A2  =  -8
B1  =   3
B2  = -14
E1  =  rnorm(CNT, mean = 0  , sd =1 )
E2  =  rnorm(CNT, mean = 0.5, sd =3 )


explantory_1 <- rnorm(CNT, mean =  10, sd = 1.5)
explantory_2 <- rnorm(CNT, mean = 120, sd = 3.8)

response =  9 * (
  
  0.1  * (A1 + B1*explantory_1 + E1 ) +
  0.01 * (A2 + B2*explantory_2 + E2 )

)

plot (response ~ explantory_1)
z <- locator(1)

plot (response ~ explantory_2)
z <- locator(1)

coplot (response ~ explantory_1 | explantory_2, panel = panel.smooth)
z <- locator(1)
Github repository about-r, path: /functions/coplot.R

See also

Index to (some) R functions

Index

Fatal error: Uncaught PDOException: SQLSTATE[HY000]: General error: 8 attempt to write a readonly database in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php:78 Stack trace: #0 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(78): PDOStatement->execute(Array) #1 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(30): insert_webrequest_('/notes/developm...', 1758201007, '216.73.216.150', 'Mozilla/5.0 App...', NULL) #2 /home/httpd/vhosts/renenyffenegger.ch/httpsdocs/notes/development/languages/R/functions/coplot(68): insert_webrequest() #3 {main} thrown in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php on line 78