<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Is there a way to perform Cramer von test in JMP? in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Is-there-a-way-to-perform-Cramer-von-test-in-JMP/m-p/866355#M102916</link>
    <description>&lt;P&gt;I am not aware of a Cramer von test in JMP, however it is a simple matter to run it in Python using the JMP/Python interface&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;names default to here(1);
dt =
// Open Data Table: semiconductor capability.jmp
// → Data Table( "semiconductor capability" )
Open( "$SAMPLE_DATA/big class.jmp" );

data = (dt:height &amp;lt;&amp;lt; get values);
python send(data);

python submit("
print( data )
");

python submit("
from scipy.stats import cramervonmises

# Example data
import numpy as np
np.random.seed(0)
# data = np.random.normal(loc=0, scale=1, size=100)

# Test against normal distribution
result = cramervonmises(data, 'norm')

print(result)
");&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;The above works for JMP 18 with it's integrated Python&lt;/P&gt;
&lt;P&gt;To run this in versions earlier only a slight modification is required&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;names default to here(1);
dt =
// Open Data Table: semiconductor capability.jmp
// → Data Table( "semiconductor capability" )
dt = Open( "$SAMPLE_DATA/big class.jmp" );

python init();

data = (dt:height &amp;lt;&amp;lt; get values)`;
python send(data);

python submit("
print( data )
");

python submit("
from scipy.stats import cramervonmises

# Example data
import numpy as np
np.random.seed(0)
# data = np.random.normal(loc=0, scale=1, size=100)

# Test against normal distribution
result = cramervonmises(data, 'norm')

print(result)
");&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Mon, 07 Apr 2025 14:47:35 GMT</pubDate>
    <dc:creator>txnelson</dc:creator>
    <dc:date>2025-04-07T14:47:35Z</dc:date>
    <item>
      <title>Is there a way to perform Cramer von test in JMP?</title>
      <link>https://community.jmp.com/t5/Discussions/Is-there-a-way-to-perform-Cramer-von-test-in-JMP/m-p/866201#M102915</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;Is there a way to perform Cramer von test within JMP? Has anyone tried this?&lt;/P&gt;</description>
      <pubDate>Sun, 06 Apr 2025 19:11:03 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Is-there-a-way-to-perform-Cramer-von-test-in-JMP/m-p/866201#M102915</guid>
      <dc:creator>HotellingSeal96</dc:creator>
      <dc:date>2025-04-06T19:11:03Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a way to perform Cramer von test in JMP?</title>
      <link>https://community.jmp.com/t5/Discussions/Is-there-a-way-to-perform-Cramer-von-test-in-JMP/m-p/866355#M102916</link>
      <description>&lt;P&gt;I am not aware of a Cramer von test in JMP, however it is a simple matter to run it in Python using the JMP/Python interface&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;names default to here(1);
dt =
// Open Data Table: semiconductor capability.jmp
// → Data Table( "semiconductor capability" )
Open( "$SAMPLE_DATA/big class.jmp" );

data = (dt:height &amp;lt;&amp;lt; get values);
python send(data);

python submit("
print( data )
");

python submit("
from scipy.stats import cramervonmises

# Example data
import numpy as np
np.random.seed(0)
# data = np.random.normal(loc=0, scale=1, size=100)

# Test against normal distribution
result = cramervonmises(data, 'norm')

print(result)
");&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;The above works for JMP 18 with it's integrated Python&lt;/P&gt;
&lt;P&gt;To run this in versions earlier only a slight modification is required&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;names default to here(1);
dt =
// Open Data Table: semiconductor capability.jmp
// → Data Table( "semiconductor capability" )
dt = Open( "$SAMPLE_DATA/big class.jmp" );

python init();

data = (dt:height &amp;lt;&amp;lt; get values)`;
python send(data);

python submit("
print( data )
");

python submit("
from scipy.stats import cramervonmises

# Example data
import numpy as np
np.random.seed(0)
# data = np.random.normal(loc=0, scale=1, size=100)

# Test against normal distribution
result = cramervonmises(data, 'norm')

print(result)
");&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 07 Apr 2025 14:47:35 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Is-there-a-way-to-perform-Cramer-von-test-in-JMP/m-p/866355#M102916</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2025-04-07T14:47:35Z</dc:date>
    </item>
  </channel>
</rss>

