Re: [R] Reverse dependency checking

2025-02-13 Thread Jeroen Ooms
On Thu, Feb 13, 2025 at 1:46 PM Lenth, Russell V via R-help wrote: > > Dear R-Help, > > When I submit an update to one of my packages, I decided to try to avoid > having to fix errors that sometimes occur in CRAN's reverse-dependency checks > by performing the same checks ahead of time. From wha

Re: [R] Plotting directly to memory?

2023-05-28 Thread Jeroen Ooms
On Sun, May 28, 2023 at 1:46 PM Duncan Murdoch wrote: > > Is there a way to open a graphics device that plots entirely to an array > or raster in memory? I'd prefer it to use base graphics, but grid would > be fine if it makes a difference. > > For an explicit example, I'd like to do the equivale

Re: [R] Rstudio does not run on ubuntu 20

2020-06-16 Thread Jeroen Ooms
On Mon, Jun 15, 2020 at 2:47 PM Luigi Marongiu wrote: > > Hello, > all of a sudden rstudio stopped working on ubuntu 20.04. I > re-installed from `rstudio-1.3.959-amd64.deb` but it does not launch > even if there is an icon. On terminal I got: > ``` > $ rstudio > rstudio: error while loading share

Re: [R] Rtools required

2020-04-30 Thread Jeroen Ooms
On Wed, Apr 29, 2020 at 11:37 PM Steven wrote: > > Hello John, > > Perhaps you can help me. I am an idiot. I visited the Rtools web page > and learn to run the following lines in R: Still I am getting the same > warning message. > > > writeLines('PATH="${RTOOLS40_HOME}\\usr\\bin;${PATH}"', con =

Re: [R] Can't rsync extsoft/3.6 when compiling R 3.6

2019-05-02 Thread Jeroen Ooms
On Thu, May 2, 2019 at 9:36 AM Martin Maechler wrote: > > > Shuguang Sun > > on Thu, 2 May 2019 12:57:37 +0800 writes: > > > Hi all, > > When I try to compile R 3.6 in windows 10 in Rtools35, it raised the > error message: > > --8<---cut here---star

Re: [R] Problem installing libxml2 under Homebrew

2018-02-19 Thread Jeroen Ooms
You probably have a malconfigured homebrew installation of R. On MacOS it is recommended to use the CRAN version of R https://cran.r-project.org/bin/macosx/. The homebrew version depends on gcc compilers and does not support cran binary packages. If you really want to use the homebrew R try ruling

Re: [R] JSONlite import problem

2015-10-24 Thread Jeroen Ooms
On Sat, Oct 24, 2015 at 1:35 PM, Duncan Murdoch wrote: > > > However, editing the file with a text editor to create "proper" EOF > > doesn't help. > > The problem is that you have valid-looking JSON objects on each odd > numbered line, separated by single blank lines. The parser expects an > EOF

Re: [R] Installing pre-compiled R in Linux

2015-10-07 Thread Jeroen Ooms
> On Tue, Oct 6, 2015 at 9:42 PM, Sasikumar Kandhasamy > wrote: >> Thanks a lot Mike. The Linux distribution we use is "Red Hat Enterprise >> Linux Server release 6.2". On RHEL and CentOS the easiest and most reliable way to get R and R packages is via EPEL. Simply add the EPEL repositories and

Re: [R] How to access https page

2015-03-10 Thread Jeroen Ooms
On Mon, Mar 9, 2015 at 3:39 PM, Hui Du wrote: > > readLines(url) > Error in file(con, "r") : cannot open the connection > In addition: Warning message: > In file(con, "r") : unsupported URL scheme > Try: library(curl) readLines(curl(url)) [[alternative HTML version deleted]] _

Re: [R] Failure to execute R CMD SHLIB successfully

2015-02-04 Thread Jeroen Ooms
On Sat, Jan 31, 2015 at 1:36 PM, Fisher Dennis wrote: > followed by a series of errors: > > gcc -m32 -shared -s -static-libgcc -o ../compiled/Windows32.so tmp.def > ConvertSAS.o CKHashTable.o readstat_convert.o readstat_bits.o readstat_io.o > readstat_sas.o -Ld:/RCompile/CRANpkg/extralibs64/local

Re: [R] Install R on linux Mint

2015-01-14 Thread Jeroen Ooms
On Wed, Jan 14, 2015 at 7:40 PM, Jeroen Ooms wrote: > Try 'precise' instead of 'utopic' I meant 'trusty'. The version should match the underlying ubuntu: http://www.linuxmint.com/oldreleases.php __ R-help@r-project.o

Re: [R] Install R on linux Mint

2015-01-14 Thread Jeroen Ooms
Try 'precise' instead of 'utopic' On Wed, Jan 14, 2015 at 7:31 PM, John Sorkin wrote: > I am trying to install R on Linux mint 17.1. I followed the instructions > found on CRAN and got a messages about unmet dependencies. I detail below the > steps I took: > > I added deb http://lib.stat.cmu.ed

[R] Updates from the useR! 2014 organizing committee

2014-06-02 Thread Jeroen Ooms
Hi all, We are exactly one month away from the useR! 2014 conference [1]. Time for an update from the organizing committee. This weekend, registrations passed the 500 mark, which is a new record for useR! according to data collected by Gergely Daróczi [2]. Yet, there is plenty of additional capac

[R] Call for abstracts to present at useR! 2014

2014-02-20 Thread Jeroen Ooms
We are happy to inform you that abstract submission for useR! 2014 is now available online, see http://user2014.stat.ucla.edu/ The R User Conference, useR! 2014 is scheduled for July 1-3, 2014 at the University of California, Los Angeles. Before the official program, half-day tutorials will

Re: [R] flatten lists

2012-06-26 Thread Jeroen Ooms
(x) >  identical(x1,x2) > [1] TRUE > > > > A.K. > > > > - Original Message - > From: Jeroen Ooms > To: Neal Fultz > Cc: r-help@r-project.org > Sent: Tuesday, June 26, 2012 6:23 PM > Subject: Re: [R] flatten lists > > Hmm that doesn't seem

Re: [R] flatten lists

2012-06-26 Thread Jeroen Ooms
uot;)) On Tue, Jun 26, 2012 at 3:04 PM, Neal Fultz wrote: > do.call("c", x) > > maybe? > > On Tue, Jun 26, 2012 at 02:25:40PM -0700, Jeroen Ooms wrote: >> I am looking for a function to flatten a list to a list of only 1 >> level deep. Very similar to unl

[R] flatten lists

2012-06-26 Thread Jeroen Ooms
I am looking for a function to flatten a list to a list of only 1 level deep. Very similar to unlist, however I don't want to turn it into a vector because then everything will be casted to character vectors: x <- list(name="Jeroen", age=27, married=FALSE, home=list(country="Netherlands", city="Ut

[R] issues with read.spss

2012-02-10 Thread Jeroen Ooms
Someone supplied me with an SPSS datafile that caused a buffer overflow and then a crash when reading it in R. Unfortunately I can't supply the dataset at hand and I have a hard time reproducing it with a toy example. But I found at least 2 issues that might be related. I would like to know which o

Re: [R] Standardized beta-coefficients in regression

2011-09-26 Thread Jeroen Ooms
Unfortunately I found myself in the same position as outlined above, where I was requested to reproduce 'standardized regression coefficients' as reported by SPSS. Below an example that produces something very similar to the results table from an SPSS "Linear Regression" procedure, including the st

Re: [R] Save generic plot to file (before rendering to device)

2011-08-01 Thread Jeroen Ooms
Bumping this one up because the 'before.plot.new' solution turned out to be sub-optimal after all. >> It should be possible to do this with a before.plot.new hook, right? > > Yes, sure, if you treat the first and last plot separately. It turns out that the before.plot.new hook does not is not tri

Re: [R] Save generic plot to file (before rendering to device)

2011-07-17 Thread Jeroen Ooms
Thanks I didn't know about that. I ended up with something like this. Is there a more elegant way to do it? myplots <<- list(); hasplots <<- FALSE; setHook("before.plot.new", function(...) {     if(hasplots == FALSE){       hasplots <<- TRUE;     } else {       myplots[[length(myplots)+1]] <<- rec

Re: [R] Save generic plot to file (before rendering to device)

2011-07-16 Thread Jeroen Ooms
;> greg.s...@imail.org >> 801.408.8111 >> >> >> -Original Message- >>> From: r-help-boun...@r-project.org [mailto:r-help-bounces@r- >>> project.org] On Behalf Of Jeroen Ooms >>> Sent: Monday, July 11, 2011 12:22 PM >>> To: David

Re: [R] Save generic plot to file (before rendering to device)

2011-07-11 Thread Jeroen Ooms
> > You can also save a data (or function) object to an .Rdata file with > save(objname, file="filename.Rdata") and your colleagues could then > load("filename.Rdata") in R. > Thanks for the responses. I found an old post by Gabor Grothendieck that shows what I want. Basically the trick is to sav

Re: [R] unwanted coercion using apply

2011-05-22 Thread Jeroen Ooms
> > apply() operates on arrays and a data frame will be coerced to a matrix > (which requires all elements to be of the same type). This is documented in > ?apply. > Thanks, I was not aware of that. I implicitly assumed there would be a specific apply.data.frame. > This may not be elegant, but

[R] unwanted coercion using apply

2011-05-22 Thread Jeroen Ooms
I need to convert a dataframe to a record-structure, to be able to encode it later in JSON. Suppose this is the data: mydata <- data.frame(foo=1:3, bar=c("M","M","F")); I would like to convert this to a unnamed list (json array) of key-value pairs. For example like this: apply(data.frame(foo=1:3

[R] regressing on variable with heavy tails

2011-04-30 Thread Jeroen Ooms
I have a dependent variable with is very peaked and has heavy tails, something I haven't encountered before. (histogram: http://postimage.org/image/2sw9bn8pw/). What could be an appropriate family or transformation to do regress on this?-- View this message in context: http://r.789695.n4.nabble.co

[R] Read function that detects format automatically

2011-04-27 Thread Jeroen Ooms
I was wondering if there exists a function that automatically tries to detect the format of a datafile. E.g. if it is an ascii datafile, that it can detect appropriate defaults for the read.table() parameters. One could for example read the first 10 lines of the file and analyze the format of the f

[R] matrix of higher order differences

2011-04-26 Thread Jeroen Ooms
Is there an easy way to turn a vector of length n into an n by n matrix, in which the diagonal equals the vector, the first off diagonal equals the first order differences, the second... etc. I.e. to do this more efficiently: diffmatrix <- function(x){ n <- length(x); M <- diag(x);

Re: [R] detect filetype (as in unix 'file')

2011-04-05 Thread Jeroen Ooms
> No, but what is wrong with using system()? The application is running in a very sandboxed environment and might not have permission to execute 'file'. > 'file' is large and complex because it tries to be comprehensive (but it > still does not know about some common systems, e.g. 64-bit Windows

[R] detect filetype (as in unix 'file')

2011-04-03 Thread Jeroen Ooms
Is there a way in R (in Linux) to detect the type of a file without invoking a shell? E.g to do this: > system("file density.plot") density.plot: PDF document, version 1.4 but without using system()? I tried file() and file.info(), but both do display the information I am looking for. -- View

Re: [R] svg malformed on CentOS (epel R)

2011-03-30 Thread Jeroen Ooms
The problem has been resolved thanks to Tom Callaway from Redhat: Tom Callaway wrote: > > Looking at the R source code, it uses Cairo to do the SVG creation, and > the Cairo in RHEL-5 is very (very) old (1.2.4). > > Digging through Cairo's changelogs post 1.2.4, I came across this: > > "SVG: F

Re: [R] recursive do.call

2011-03-14 Thread Jeroen Ooms
ument lists for possible S3 > >> methods (e.g. 'digits' is an argument to print.default), and then > >> there is S4 to think about. Also, can arguments be matched by partial > >> names? Can they be given in the argument list without a name? > >

Re: [R] recursive do.call

2011-03-14 Thread Jeroen Ooms
son to want to do it this > way... > > Cheers > Felix > > > On 14 March 2011 14:24, Jeroen Ooms wrote: > > I would like to define a recursive equivalent to call or do.call, which > takes > > a vector of multiple function names and 'chains' them, by greed

[R] recursive do.call

2011-03-13 Thread Jeroen Ooms
I would like to define a recursive equivalent to call or do.call, which takes a vector of multiple function names and 'chains' them, by greedy matching of arguments down the chain. For example, I would like to be able to do: rec.do.call(c("glm","coef","print), list(formula=dist~speed, digits=3, da

[R] svg malformed on CentOS (epel R)

2011-03-13 Thread Jeroen Ooms
There is an issue with the default svg device on a centos workstation that I am using. It does not result in an error, but it produces malformed svg images. Exactly the same script works just fine on an ubuntu box. On Ubuntu I am using R binary that comes with maverick, on centos I am using the lat

Re: [R] getting attributes of list without the "names".

2011-03-01 Thread Jeroen Ooms
into infinite recursion if every list's attributes is another list with at least a 'names' attribute? On Tue, Mar 1, 2011 at 2:30 AM, Duncan Murdoch wrote: > On 11-02-28 11:17 PM, Jeroen Ooms wrote: > >> I am trying to encode arbitrary S3 objects by recursively loo

[R] getting attributes of list without the "names".

2011-02-28 Thread Jeroen Ooms
I am trying to encode arbitrary S3 objects by recursively looping over the object and all its attributes. However, there is an unfortunate feature of the attributes() function that is causing trouble. From the manual for ?attributes: The names of a pairlist are not stored as attributes, but are re

[R] Parsing JSON records to a dataframe

2011-01-06 Thread Jeroen Ooms
What is the most efficient method of parsing a dataframe-like structure that has been json encoded in record-based format rather than vector based. For example a structure like this: [ {"name":"joe", "gender":"male", "age":41}, {"name":"anna", "gender":"female", "age":23} ] RJSONIO parses this a

Re: [R] Chrooted R + Rserve

2010-10-29 Thread Jeroen Ooms
I am trying to reproduce this setting, but it does not seem to work anymore. I keep getting the error: execve failed: No such file or directory. One of the reasons is that /usr/local/bin/Rserve is no longer a standalone executable, and is now initiated using R CMD Rserve. However, after making th

[R] Setting R_Interactive

2010-08-12 Thread Jeroen Ooms
We're using Rserve as a back-end in our application. A problem that we experienced is that the Rserve connection gets stuck when R is asking for some kind of user interaction. For example, when executing an 'install.packages' command for the first time without specifying the repos argument, R will

Re: [R] read.table behavior for Dates.

2010-04-16 Thread Jeroen Ooms
Ah Phil Spector is right, nothing is converted. I'm almost too embarrassed to admit it, but actually, it was Excel that tricked me. It displays date fields differently than they are stored in the csv file, and once you press 'save', it saves everything to a different format, completely unasked. N

Re: [R] read.table behavior for Dates.

2010-04-16 Thread Jeroen Ooms
Yes I know I can manually do it, but I am using it for scripts in which users upload files. Hence, I don't know what's going to come; I don't know on before hand whether data will contain Dates, and in which columns they appear. This is why I was surprised that read.table has some (undocumented) b

[R] read.table behavior for Dates.

2010-04-16 Thread Jeroen Ooms
When read.table imports a table that includes a header called 'Date', it tries to recognize the date format. For example, if one imports this data from Yahoo finance, the Date column is automatically transformed to Y-m-d, whereis in the data it appears as m/d/Y: myData <- read.csv("http://ichart.

[R] [announce] yeroon.net/ggplot2 web application v0.2

2010-04-15 Thread Jeroen Ooms
A new version of the ggplot2 web interface has been released. Info and a demo video are available here: http://www.stat.ucla.edu/~jeroen/ggplot2/. The new version has a lot of new features, like advanced data import, integration with Google docs, converting variables from numeric to factor to date

Re: [R] yeroon.net/ggplot2 web application v0.11

2009-12-07 Thread Jeroen Ooms
t; Supervisory Fishery Biologist > Department of the Interior > US Fish & Wildlife Service > California, USA > > > --- On Sun, 12/6/09, Jeroen Ooms wrote: > >> From: Jeroen Ooms >> Subject: [R] yeroon.net/ggplot2 web application v0.11 >> To: r-help@r-pro

[R] yeroon.net/ggplot2 web application v0.11

2009-12-06 Thread Jeroen Ooms
A new version of the ggplot2 web application is available at http://www.yeroon.net/ggplot2. New features include 1D geom’s (histogram, density, freqpoly), syntax mode (by clicking the tiny arrow at the bottom), and some additional facet options. Furthermore some minor improvements and fixes, most n

[R] multivariate numerical integration.

2009-11-03 Thread Jeroen Ooms
numerical integration? ----- Jeroen Ooms * Dept. of Methodology and Statistics * Utrecht University Visit http://www.jeroenooms.com www.jeroenooms.com to explore some of my current projects. -- View this message in context: http://old.nabble.com/multivariate-numerical-integration.-tp2616439

[R] 1 dimensional optimization with local minima

2009-11-02 Thread Jeroen Ooms
. What could be an appropriate package or function for one-dimensional bounded optimization, that includes some protection against local minima? - Jeroen Ooms * Dept. of Methodology and Statistics * Utrecht University Visit http://www.jeroenooms.com www.jeroenooms.com to explore some of my

[R] Announce: lme4 web application

2009-09-14 Thread Jeroen Ooms
e it. Any feedback/suggestions/bugreports are welcome of course. note: because this is a public demo server, R sessions are currently limited to 40seconds. If you experience timeouts, try again later (server can be busy). Thank you! Jeroen ----- Jeroen Ooms * Dept. of Methodology and Statis

[R] [Hmisc] Latex to pdf

2009-09-06 Thread Jeroen Ooms
tex/latex/geometry/geometry.cfg)) No file file643c9869.aux. [1] (./file643c9869.aux) ) Output written on file643c9869.dvi (1 page, 372 bytes). Transcript written on file643c9869.log. Error: Can't open display: - Jeroen Ooms * Dept. of Methodology and Statistics * Utrecht University Visit htt

Re: [R] Anova over a list of models

2009-09-05 Thread Jeroen Ooms
2009/9/5 Henrique Dallazuanna > > Try this: > anova(myModels[[1]],myModels[[2]]) > > do.call(anova, myModels) Does this work for you? Both functions are failing here: > anova(myModels[[1]],myModels[[2]]) Error in names(mods) <- sapply(as.list(mCall)[c(FALSE, TRUE, modp)], as.character) :   'name

[R] Anova over a list of models

2009-09-05 Thread Jeroen Ooms
dels as a seperate argument? ----- Jeroen Ooms * Dept. of Methodology and Statistics * Utrecht University Visit http://www.jeroenooms.com www.jeroenooms.com to explore some of my current projects. -- View this message in context: http://www.nabble.com/Anova-over-a-list-of-models-tp25311985

[R] Convert dataframe to array of records

2009-09-05 Thread Jeroen Ooms
of records, while keeping the datatypes for every field? - Jeroen Ooms * Dept. of Methodology and Statistics * Utrecht University Visit http://www.jeroenooms.com www.jeroenooms.com to explore some of my current projects. -- View this message in context: http://www.nabble.com/Co

[R] Problem Installing R 2.9.1.1 RHEL x86_64 binary

2009-08-12 Thread Jeroen Ooms
ed by R-devel-2.9.1-1.el5.x86_64 What could be the problem? - Jeroen Ooms * Dept. of Methodology and Statistics * Utrecht University Visit http://www.jeroenooms.com www.jeroenooms.com to explore some of my current projects. -- View this message in context: http://www.nabble.com/Pr

Re: [R] popular R packages

2009-03-07 Thread Jeroen Ooms
> > I agree with Thomas, over the years I have installed R on at least 5 > computers. > I don't see why per-marchine statistics would not be useful. When you installed a package on five machines, you probably use it a lot, and it is more important to you than packages that you only installed once.

[R] popular R packages

2009-03-07 Thread Jeroen Ooms
! - Jeroen Ooms * Dept. of Methodology and Statistics * Utrecht University Visit http://www.jeroenooms.com www.jeroenooms.com to explore some of my current projects. -- View this message in context: http://www.nabble.com/popular-R-packages-tp22391260p22391260.html Sent from the R

[R] lme4 and Variable level detection

2009-02-28 Thread Jeroen Ooms
crosslevel interactions without a random slope for the lower level variable. Now I'm confused. Is there a fundamental difference between a crosslevel interaction, or is the same thing as a regular interaction when the model also holds an error term for the lower level variable? - Jeroen Ooms *

Re: [R] package install error in CentOS

2008-12-19 Thread Jeroen Ooms
tall.packages("Cairo"); thank you :) Jeffrey Horner wrote: > > Check that your data partitions have the 'exec' flag set in /etc/fstab, > particulary the /tmp partition: > > http://www.centos.org/modules/newbb/viewtopic.php?topic_id=1687&forum=31 > &g

[R] png() and jpg() devices acting weird.

2008-12-19 Thread Jeroen Ooms
I use a CentOS 5.2 VPS to generate graphs through an R web-application. I generate generate both pdf() and png() formats of the graphs. The pdf works just fine and generates perfect pictures. However, the figures generated by the png() (and also the jpg) device are messed up. The weird thing is

[R] package install error in CentOS

2008-12-19 Thread Jeroen Ooms
I am trying to install package "Cairo" on CentOS 5.2, but I keep getting this error: * Installing *source* package 'Cairo' ... /usr/lib64/R/bin/INSTALL: ./configure: /bin/sh: bad interpreter: Permission denied ERROR: configuration failed for package 'Cairo' ** Removing '/usr/lib64/R/library/Cairo

[R] a ratio-variable predictor

2008-12-18 Thread Jeroen Ooms
Maybe this is more of a statistical question than an R question, but I am going to ask it anyway :) Cortisol and Testosteron are known to interact in the body, and some literature suggest that especially the ratio between the two is a good predictor. So I want to add the ratio predictor (y~cort/te

[R] Multivariate kernel density estimation

2008-12-08 Thread Jeroen Ooms
I would like to estimate a 95% highest density area for a multivariate parameter space (In the context of anova). Unfortunately I have only experience with univariate kernel density estimation, which is remarkebly easier :) Using Gibbs, i have sampled from a posterior distirbution of an Anova mod

Re: [R] plotting density for truncated distribution

2008-11-26 Thread Jeroen Ooms
thank you, both solutions are really helpful! -- View this message in context: http://www.nabble.com/plotting-density-for-truncated-distribution-tp20684995p20703469.html Sent from the R help mailing list archive at Nabble.com. __ R-help@r-project.org

[R] plotting density for truncated distribution

2008-11-25 Thread Jeroen Ooms
I am using density() to plot a density curves. However, one of my variables is truncated at zero, but has most of its density around zero. I would like to know how to plot this with the density function. The problem is that if I do this the regular way density(), values near zero automatically ge

Re: [R] R 2.8.0 is released

2008-10-21 Thread Jeroen Ooms
, Duncan Murdoch <[EMAIL PROTECTED]> wrote: > On 10/20/2008 4:34 PM, Jeroen Ooms wrote: >> >> I'm getting a unexpected compiling error when doing make: >> >> gcc -std=gnu99 -I../../src/extra/zlib -I../../src/extra/bzip2 >> -I../../src/extra/pcre -I. -I../

Re: [R] R 2.8.0 is released

2008-10-20 Thread Jeroen Ooms
I'm getting a unexpected compiling error when doing make: gcc -std=gnu99 -I../../src/extra/zlib -I../../src/extra/bzip2 -I../../src/extra/pcre -I. -I../../src/include -I../../src/include -I/usr/local/include -DHAVE_CONFIG_H -fpic -g -O2 -c platform.c -o platform.o platform.c: In function 'd

Re: [R] R 2.8.0 is released

2008-10-20 Thread Jeroen Ooms
I'm getting a unexpected compiling error when doing make: gcc -std=gnu99 -I../../src/extra/zlib -I../../src/extra/bzip2 -I../../src/extra/pcre -I. -I../../src/include -I../../src/include -I/usr/local/include -DHAVE_CONFIG_H -fpic -g -O2 -c platform.c -o platform.o platform.c: In function 'do_

Re: [R] drop1() seems to give unexpected results compare to anova()

2008-08-01 Thread Jeroen Ooms
Thomas Chu wrote: > > Neither of those 3 lines of commands managed to drop x4 and its P value > magically decreased from 0.94 to almost 0! I am also baffled by how R > calculated those RSS. > Maybe it is using a different type of SS. If i have a lm() model, and i do: options(contrasts=c("con

Re: [R] Object-oriented programming in R for Java programmers?

2008-07-27 Thread Jeroen Ooms
Werner Wernersen wrote: > > I have done oo programming in C++ and Java before but the first few > tutorial on R oo were a bit confusing for me. > My personal experience is that the type of OO programming that makes for example Java code nice and easy to structure is not possible in R. The bigg

[R] Link functions in SEM

2008-07-27 Thread Jeroen Ooms
Is it possible to fit a structural equation model with link functions in R? I am trying to build a logistic-regression-like model in sem, because incorporating the dichotomous variables linearly seems inappropriate. Mplus can do something similar by specifying a 'link' parameter, but I would like