Questions tagged [interaction]

The tag has no usage guidance.

interaction
Filter by
Sorted by
Tagged with
30 votes
1 answer
17k views

Asterisk (*) vs. colon (:) in R formulas [closed]

I always thought that * and : meant the same thing when adding interaction terms in R formulas. For example: amount_of_gas ~ temperature*gas_type amount_of_gas ~ temperature:gas_type However, now ...
Leo Ohyama's user avatar
21 votes
2 answers
12k views

How to make all interactions before using glmnet

I have an x-matrix of 8 columns. I want to run glmnet to do a lasso regression. I know I need to call: glmnet(x, y, family = "binomial", ...). However, how do I get x to consider all one way ...
user1357015's user avatar
  • 11.5k
18 votes
4 answers
20k views

How to customize touch interaction on leaflet maps

How to customize leaflet maps to disable one-finger scroll on mobile devices and add two finger scroll like google maps (see https://developers.google.com/maps/documentation/javascript/interaction) I ...
Patrick's user avatar
  • 183
17 votes
4 answers
36k views

Best way to plot interaction effects from a linear model

In an effort to help populate the R tag here, I am posting a few questions I have often received from students. I have developed my own answers to these over the years, but perhaps there are better ...
Jake's user avatar
  • 743
16 votes
1 answer
3k views

gbm::interact.gbm vs. dismo::gbm.interactions

Background The reference manual for the gbm package states the interact.gbm function computes Friedman's H-statistic to assess the strength of variable interactions. the H-statistic is on the scale ...
GNG's user avatar
  • 239
14 votes
3 answers
20k views

Use EventTrigger on a specific key

I would like to invoke a command using EventTrigger when a particular key is touched (for example, the spacebar key) Currently I have: <i:Interaction.Triggers> <i:EventTrigger ...
lost_bits1110's user avatar
14 votes
4 answers
14k views

How to create a COM object in a UWP application? (C#)

Question: How to create COM object in a Universal Windows Platform (UWP) application? Motivation: I want to switch from WPF to UWP. Since my workload requires making calls to third-party libraries ...
Nat's user avatar
  • 1,085
13 votes
3 answers
18k views

Send data from Activity to Fragment already created

I only have found information about how to create a Fragment sending some data to it, but only in its instantiation with the constructor. But I want to know if it is possible to send some data (for ...
sergio's user avatar
  • 183
13 votes
1 answer
8k views

Is it possible to make user input invisible as a 'sudo' password input?

I'm using raw_input() to receive password from user in interactive mode, but I want to make input symbols invisible for security reasons, as it is when you're typing your password using sudo or ...
Enchantner's user avatar
  • 1,554
12 votes
2 answers
4k views

Angular2: output/input versus event/ViewChild - Component interactions

Dears, The Golden Rules about web component interaction are: Parent references direct children Children doesn't reference parent Parent -> Child: via method calls Child -> Parent: via events This ...
Gabriel's user avatar
  • 121
11 votes
1 answer
630 views

Table of Interactions - Case with pets and houses

I have a list of houses and a list of animal species. houses = c(1,1,2,3,4,4,4,4,5,6,5) animals = c('cat','dog','cat','dog','rat', 'cat', 'spider', 'snake', 'cat', 'cat', 'rat') I am trying to ...
Remi.b's user avatar
  • 17.8k
11 votes
3 answers
30k views

Barplot with significant differences and interactions?

I would like to visualize my data and ANOVA statistics. It is common to do this using a barplot with added lines indicating significant differences and interactions. How do you make plot like this ...
Jonas Lindeløv's user avatar
11 votes
0 answers
8k views

Calculating marginal effects in Python with statsmodels' get_margeff command in logit model with interaction terms

I encountered a problem when working with statsmodels' get_margeff command for a logit model with interaction terms. While in a main effects models the effects are correctly calculated and correspond ...
Patrick Patrick's user avatar
10 votes
2 answers
1k views

Actor model and collision detection

I'm just thinking about possibility of Erlang for game server. (oh I'm not Erlang expert, just considering stage) This means using Actor Model for game simulation. Of course, most biggest attraction ...
eonil's user avatar
  • 84.8k
10 votes
2 answers
2k views

haskell and Unix shell scripting

is there any possibility to use haskell functions in unix shell scripts? for instance: #!/bin/bash ... var1=value ... # use haskell function with input from shell variable var1 # and store the ...
jimmyt's user avatar
  • 501
10 votes
2 answers
10k views

Using dplyr for frequency counts of interactions, must include zero counts

My question involves writing code using the dplyr package in R I have a relatively large dataframe (approx 5 million rows) with 2 columns: the first with an individual identifier (id), and a second ...
Mark T Patterson's user avatar
10 votes
2 answers
37k views

expect, interact and then again expect

There are several posts regarding the same, but i still not able to make my expect script work properly. My intention is to automate everything but leave the password enter for the user. So there are ...
Petras L's user avatar
  • 303
9 votes
1 answer
5k views

Get 2 userscripts to interact with each other?

I have two scripts. I put them in the same namespace (the @namespace field). I'd like them to interactive with another. Specifically I want script A to set RunByDefault to 123. Have script B check ...
user avatar
8 votes
2 answers
11k views

Visualising a three way interaction between two continuous variables and one categorical variable in R

I have a model in R that includes a significant three-way interaction between two continuous independent variables IVContinuousA, IVContinuousB, IVCategorical and one categorical variable (with two ...
Sarah's user avatar
  • 789
8 votes
3 answers
23k views

ggplot GLM fitted curve without interaction

I want to add the fitted function from GLM on a ggplot. By default, it automatically create the plot with interaction. I am wondering, if I can plot the fitted function from the model without ...
TheRimalaya's user avatar
  • 4,482
8 votes
1 answer
1k views

Probable bug on iPad for UIDocumentInteractionController: presentPreviewAnimated is not pushed into the navigation stack

iPad only: UIDocumentInteractionController presentPreviewAnimated is not pushed into the navigation stack and only shown modally even when a navigation controller is returned from ...
qiksand's user avatar
  • 113
7 votes
2 answers
4k views

Triple click as events on React?

Triple Clicks When I’m in the development phase of a project, I like to tweak forms to fill in all fields with one triple click event over one another element (div or header usually), just to avoid ...
Juan Rubio's user avatar
7 votes
2 answers
3k views

Modelling interactions with only a subset of the levels of a factor in R

Let's first look at lm. I have a continuous explanatory $X$ and a factor $F$ modelling seasonal aspects (in the example 8 levels). Let $\beta$ denote the slope for $X$ then I want to model ...
Richi W's user avatar
  • 3,584
7 votes
2 answers
1k views

Plotting interaction in R graphs

I have following type of data (although number of data points is very large) # property data name <- c("A", "B", "C", "D") diameter <- c(4.3, 8.3,1.2, 3.3) X <- c( 1, 2, 3, 4) Y <- c(1, 3,...
jon's user avatar
  • 11.3k
7 votes
1 answer
1k views

R: Force data.table to compute all interactions

Here is a data.table: dat = data.table(var1=rnorm(120), var2=rep(c('a','b','c'),40), var3=rep(c(1,2,3,2,1,2,1,2,2,3,1,2),10)) dat2 = dat[,list(resp = mean(var1)),by=list(var2, var3)] In dat2, only ...
Remi.b's user avatar
  • 17.8k
7 votes
2 answers
6k views

Interact with ffmpeg from a .NET program?

I'm trying to create a .NET wrapper for media-file conversion using ffmepg, here is what I've tried: static void Main(string[] args) { if (File.Exists("sample.mp3")) File.Delete("sample.mp3"); ...
Shimmy Weitzhandler's user avatar
7 votes
1 answer
641 views

How to populate a div with hover text in bokeh?

I am developing a geographical dashboard in bokeh. It is fairly easy to use hover tooltip in bokeh, however I want to populate a div when I hover on a field. Python version : 3.5.2 Bokeh version : 0....
Ahsaan-566's user avatar
6 votes
2 answers
8k views

Interact with other desktop-applications in windows using C# winforms

I was wondering if its possible to interact with other programs someone with my program. For example clicking a button on another program etc. etc. I'm not sure if this is even possible but if it is ...
Proximo's user avatar
  • 6,423
6 votes
1 answer
505 views

Vowpal Wabbit ignore linear terms, only keep interaction terms

Hi have a Vowpal Wabbit file with two namespaces, for example: 1.0 |A snow |B ski:10 0.0 |A snow |B walk:10 1.0 |A clear |B walk:10 0.0 |A clear |B walk:5 1.0 |A clear |B walk:100 1.0 |A clear |B ...
Manor Lev Tov's user avatar
6 votes
1 answer
5k views

OpenLayers 3 How to register Feature Modified event as "featuremodified" in OpenLayer 2

I need to implement Undo / Redo functionality using OpenLayers 3 vector editing (just like demonstrated in http://dev.openlayers.org/examples/modify-feature.html for OpenLayers 2). To keep track of ...
abdul-wahab's user avatar
  • 2,222
6 votes
1 answer
382 views

Interactive Android Animation

I am trying to implement an interaction-animation in android where the user can change the size of object and rotate it with interaction. This is not exactly what I am trying to implement, but ...
Q2x13's user avatar
  • 534
6 votes
0 answers
1k views

How do I interact a tensor product with two different `by=var` variables?

An example: library(mgcv) N=1000 x1 = seq(1:N) x2 = log(x1) x3 = sqrt(x1) fac1 = ceiling(rnorm(N)*3) fac2 = ceiling(runif(N)*3) y = fac1*x2 + x1*x2 + x2 + x3*x2 + x2*(x1/x3)^(.8+fac2/10) + rnorm(N)*...
generic_user's user avatar
  • 3,500
5 votes
3 answers
19k views

R: Interaction Plot with a continuous and a categorical variable for a GLMM (lme4)

I would like to make an interaction plot to visually display the difference or similarity in slopes of interaction of a categorical variable (4 levels) and a standardized continuous variable from the ...
Jota's user avatar
  • 17.5k
5 votes
8 answers
1k views

great first run experience [closed]

Does anyone have good examples of software that has a fantastic first run experience? Some software obviously just works "out of the box". However, there is significant software that requires some ...
Yi.'s user avatar
  • 322
5 votes
1 answer
1k views

Why doesn't my UIImageView respond to taps?

I have a UIImageView that's being loaded from a NIB. I've hooked up a gesture recognizer to it to handle taps, but when I run the app, taps aren't being detected.
Don McCaughey's user avatar
5 votes
3 answers
9k views

iPhone interaction between PC app and iPhone app using USB

I know since the 3.0 SDK we can use accessories, so my question is simple, what is the process to make an iPhone app and PC (or Mac) app interact, using the USB ? I don't ask you any code, but just ...
Francescu's user avatar
  • 17k
5 votes
4 answers
465 views

Why aren't they around that much? [closed]

I'm currently doing research on adaptive interfaces and i'd like to hear some responses from fellow Web Developers on this subject. We used to have static interfaces back in the day, where you couldn'...
Paul's user avatar
  • 858
5 votes
1 answer
1k views

Multiple Regression with Interaction

I've come across somewhat of a confusing topic relating to the syntax of multiple regression with explanatory variables and their interactions. A DataCamp explanation led me to think that: lm(formula =...
galinfia's user avatar
5 votes
1 answer
2k views

How to interact with x86 I/O device from assembly bootloader?

The primitive goal of this question is Is a device connected? If something is connected, what is the device? What is the device information? So far I've understood is (x86 intel architecture Z370 ...
YoonSeok OH's user avatar
5 votes
2 answers
2k views

(console) user interaction in R?

I am sure you all know the "hit return to show next plot" statement when executing the plot command on a regression object. I wonder how I can do this kind of interaction on my own in R. I found a ...
Matt Bannert's user avatar
5 votes
1 answer
2k views

Record Bash Interaction, saving STDIN, STDOUT seperately

So I want to record my bash interaction, which I know I can do with script, or ttyrec. Except I want one feature more than they have. Save input (i.e STDIN), and output (i.e. STDOUT) separately. So ...
ptolemy0's user avatar
  • 809
5 votes
1 answer
3k views

D3.js Synchronized Zoom Across Multiple Graphs

I want to make a line chart to zoom/pan in sync with multiple web pages. These client has same Javascript and HTML source. User zooms or pan on client A, message which is day time of domain of data ...
prophet5's user avatar
  • 449
5 votes
1 answer
2k views

C++ program stops producing console output upon input to the console

I have a C++ program (MSVC 2017) which constantly outputs debug information via std::cout. However sometimes when I physically interact with the console (e.g. click on it accidentally) it stops ...
user2419798's user avatar
5 votes
2 answers
814 views

glm switches coefficient names for interactions

I use the R code: dat<-data.frame(p1=c(0,1,1,0,0), GAMMA.1=c(1,2,3,4,3), VAR1=c(2,2,1,3,4), GAMMA.2=c(1,1,3,4,1)) form <- p1 ~ GAMMA.1:VAR1 + GAMMA.2:VAR1 mod <- glm(formula=form, data=dat, ...
Giuseppe's user avatar
  • 796
5 votes
1 answer
717 views

All possible ways of ordering n values

Here is a vector: myVect = c(1,6,3,12,11,15,7,9,19,21) How can get a list of all possible different vectors we can get by reordering myVect? one possible way of reordering can be obtained with: ...
Remi.b's user avatar
  • 17.8k
5 votes
2 answers
865 views

Angular2 routed component interaction with parent

Please consider the bellow diagram for my application EventsHub is a simple injectable service : import {Injectable} from '@angular/core'; import {Subject} from 'rxjs/Subject'; @Injectable() ...
Hasan's user avatar
  • 1,835
5 votes
1 answer
2k views

Interact with graphs in jupyter lab

I´ve been trying to create interactive graphs in jupyter lab, I used: %matplotlib widget But then I got this message: Warning: Cannot change to a different GUI toolkit: widget. Using notebook instead....
JVB's user avatar
  • 71
5 votes
0 answers
218 views

UIPrintInteractionController crashes on presentation

When presented in a standalone single view application the following code works a treat. When pasted into an app running on an iPad (with splitview controller) and initiated from a UIAlertController ...
samnovotny's user avatar
4 votes
1 answer
15k views

ggplot: boxplot number of observations as x-axis labels

I have successfully created a very nice boxplot (for my purposes) categorized by a factor and binned, according to the answer in my previous post here: ggplot: arranging boxplots of multiple y-...
sina's user avatar
  • 223
4 votes
2 answers
319 views

Substituting variable for string argument in function call

I am trying to call a function that expects a string as one of the arguments. However, attempting to substitute a variable containing the string throws an error. library(jtools) # Fit linear model ...
Hank Lin's user avatar
  • 6,159

1
2 3 4 5
20